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)

defect

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.
Or GetRestyleGeneration could return uint32_t... Does using 64 bits for the field really have any benefits?
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...
Priority: -- → P3
Priority: P3 → P5
Attachment #8932379 - Flags: review?(cam)
Assignee: nobody → jeremychen
Status: NEW → ASSIGNED
Attachment #8932379 - Flags: review?(cam)
Attachment #8932379 - Attachment is obsolete: true
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.

Attachment

General

Created:
Updated:
Size: