Closed Bug 1312295 Opened 8 years ago Closed 8 years ago

Change ReflowInputFlags to use uint32_t

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

Attachments

(1 file)

Bug 1300369 and bug 1269046 will add flags to this struct so we need
more than 16 bits.  We might as well change the type to uint32_t now.
(re-ordering mFlags / mReflowDepth to avoid alignment spill)
Attachment #8803726 - Flags: review?(dholbert)
Comment on attachment 8803726 [details] [diff] [review]
Change ReflowInputFlags to use uint32_t since we'll need more than 16 bits here

Review of attachment 8803726 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks! r+
Attachment #8803726 - Flags: review?(dholbert) → review+
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a99a23306822
Change ReflowInputFlags to use uint32_t since we'll need more than 16 bits here.  r=dholbert
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/a99a23306822
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Why couldn't these flags just use bool? I see no value to have them using a fixed length integer type.
(That makes sense to me. I think they might be uint-bitfield-typed for historical reasons which predate our ability to use 'bool', perhaps?)
I remember some of us had discussion of using bool vs integer type in bug 1294628.
See Also: → 1294628
Making them bool:1 sounds fine to me.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: