Closed
Bug 1331045
Opened 7 years ago
Closed 7 years ago
Encode all pseudo-implementing native anonymous content with the pseudo type at creation time and simplify nsIAnonymousContentCreator::CreateAnonymousContent
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 1331322
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(1 file)
Bug 1330843 adds an nsINodeProperty that allows us to attach a pseudo-element to a DOM element and have nsCSSFrameConstructor pull out the correct style during style resolution. A nice next step is to use this property for all the NAC creation routines, rather than having them mint custom style contexts. This would significantly simplify the CreateAnonymousContent() API, since we could specify the ancestry and pseudo-elements directly when the nodes are created, and just return a flat nsTArray<nsIContent*>. We need this for stylo.
Assignee | ||
Comment 1•7 years ago
|
||
This is a WIP patch that eliminates the explicit style context setting, and delegates to the frame constructor to figure things out. But exactly what the frame constructor does is the subject of some discussion in bug 1331047 and bug 1330843, so that blocks us here.
Assignee | ||
Comment 2•7 years ago
|
||
I decided to just roll this into bug 1331322.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•