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)

defect
Not set
normal

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.
Blocks: 1331047
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.
Depends on: 1331322
No longer depends on: 1330843
I decided to just roll this into bug 1331322.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
No longer blocks: 1331047
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: