Closed Bug 1450734 Opened 7 years ago Closed 7 years ago

Separate @font-face and @counter-style data from the actual style rules

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bholley, Assigned: bholley)

Details

Most style rules have a Rust representation, which gets wrapped inside a C++ style rule object for CSSOM. However, @font-face and @counter-style are different - the Rust code instantiates the C++ style rules directly during parsing. This is a problem for off-main-thread CSS parsing, since C++ style rules are cycle-collected objects, and thus can't be instantiated OMT. I'm going to solve this by separating out a refcounted C++ class to hold the data bits, and then wrapping the C++ style rule around it. So all the CSSOM machinery will then work the same as the other style rules, except that the data representation happens to be in C++ rather than in Rust.
I'm planning to handle them the same way as other rules. Not sure how urgent this bug is, if not, maybe you can wait for that to happen in bug 1449068 and bug 1449087.
Alright then.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
No longer blocks: 1346988
You need to log in before you can comment on or make changes to this bug.