Closed Bug 1339765 Opened 9 years ago Closed 8 years ago

Replace NS_STYLE_GRID_TRACK_BREADTH_* with enum classes

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: waffles, Assigned: waffles)

References

Details

Attachments

(1 file)

No description provided.
The patch is required for auto-glue'ing Servo's (grid) TrackSize struct
Comment on attachment 8838175 [details] Bug 1339765 - Replace NS_STYLE_GRID_TRACK_BREADTH_* with enum classes; https://reviewboard.mozilla.org/r/113146/#review114772 r=me with MaxContent = 1. ::: layout/style/nsStyleConsts.h:683 (Diff revision 1) > // CSS Grid <track-breadth> keywords > // Should not overlap with NS_STYLE_GRID_TEMPLATE_SUBGRID > -#define NS_STYLE_GRID_TRACK_BREADTH_MAX_CONTENT 1 > -#define NS_STYLE_GRID_TRACK_BREADTH_MIN_CONTENT 2 > +enum class StyleGridTrackBreadth : uint8_t { > + MaxContent, > + MinContent, > +}; I think we need to continue to avoid using 0 for these values, per the comment about not overlapping with NS_STYLE_GRID_TEMPLATE_SUBGRID.
Attachment #8838175 - Flags: review?(cam) → review+
Pushed by Ms2ger@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e2915a5e35cd Replace NS_STYLE_GRID_TRACK_BREADTH_* with enum classes;r=heycam
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: