Closed Bug 1502751 Opened 7 years ago Closed 7 years ago

Eliminate duplicate set of longhand properties to ignore when overriding author styles

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: svoisen, Assigned: emilio)

Details

Attachments

(1 file)

We have a duplicate set of longhand properties to ignore when overriding author-specified rules (for instance, due to the user specifying high-contrast colors in preferences). See: https://searchfox.org/mozilla-central/source/servo/components/style/rule_tree/mod.rs#1294 This list of properties is already generated by mako, and should be used instead. See: https://searchfox.org/mozilla-central/rev/5b3b6b8fd9f90087f618c20382e631451136ed2b/servo/components/style/properties/properties.mako.rs#1160
Priority: -- → P3
Assignee: nobody → emilio
Most of the change is moving sets around to be static functions on LonghandIdSet. I think I like that pattern, but I can also make the new set a global static and add mako code to be `pub` or something. Though I think the LonghandIdSet::foo().contains(..) pattern is nice to read :)
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/dd629ef17f62 Don't keep a separate list of ignored-when-colors-disabled longhands. r=heycam
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: