Closed Bug 1310015 Opened 8 years ago Closed 8 years ago

[css-flexbox][css-align] MainAxisTracker inappropriately compares mJustifyContent against NS_STYLE_ALIGN constants

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: bradwerth, Assigned: bradwerth)

References

Details

Attachments

(1 file)

The constructor for MainAxisTracker uses NS_STYLE_ALIGN constants in one section, when it should use NS_STYLE_JUSTIFY constants throughout. The constants are equivalent at the moment, but the use is semantically wrong and should be fixed.
Comment on attachment 8800863 [details]
Bug 1310015: Change MainAxisTracker to consistently use NS_STYLE_JUSTIFY constants.

https://reviewboard.mozilla.org/r/85688/#review84370

(Stealing the review since dholbert is on PTO.)

Yes, for readability it's better to compare 'justify' values to NS_STYLE_JUSTIFY_ constants,
even though they are always the same as NS_STYLE_ALIGN_ constants.
Attachment #8800863 - Flags: review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3ccac82a6bcf
Change MainAxisTracker to consistently use NS_STYLE_JUSTIFY constants. r=mats
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/3ccac82a6bcf
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
[Looks like this still has "r?dholbert" in mozreview, and hence is still in my review queue. Updating "dholbert" to "mats" as the mozreview reviewer.]
Attachment #8800863 - Flags: review?(dholbert)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: