Closed
Bug 1376117
Opened 8 years ago
Closed 8 years ago
RestyleManager::mRestyleGeneration should be a uint64_t
Categories
(Core :: CSS Parsing and Computation, defect, P5)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 1421197
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | wontfix |
| firefox58 | --- | fix-optional |
People
(Reporter: heycam, Assigned: chenpighead)
References
Details
Attachments
(1 obsolete file)
RestyleManager::mRestyleGeneration is currently a uint32_t, but exposed from nsPresContext::GetRestyleGeneration as a uint64_t. This is probably from me only partially addressing bz's review comment in bug 1203766 comment 13.
Comment 1•8 years ago
|
||
Or GetRestyleGeneration could return uint32_t...
Does using 64 bits for the field really have any benefits?
| Reporter | ||
Comment 2•8 years ago
|
||
Depends how likely it is someone will call getComputedStyle on an element in a display:none subtree, cause 2^32 restyles, and then inspect a property on the nsComputedDOMStyle object. On a page doing, say, restyles at 60 Hz, it would take 828.5 days to wrap around to the same value. So I suppose it's pretty unlikely...
Updated•8 years ago
|
Priority: -- → P3
Updated•8 years ago
|
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Attachment #8932379 -
Flags: review?(cam)
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jeremychen
Status: NEW → ASSIGNED
| Comment hidden (obsolete) |
| Assignee | ||
Updated•8 years ago
|
Attachment #8932379 -
Flags: review?(cam)
| Assignee | ||
Updated•8 years ago
|
Attachment #8932379 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•8 years ago
|
||
Normally we don't dup the originally filed bug to a newly filed one. Since this issue is a relatively simple one, and the patch in Bug 1421197 has been r+ ed, I'm going to land the patch there.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•