Closed Bug 1729421 Opened 3 years ago Closed 3 years ago

Do not key rule tree children by cascade level.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 obsolete file)

No description provided.

This was needed before, since we used to optimize empty style rules away
(and thus we could get confused between the important and non-important
block for two different elements).

But now we always keep them, and thus there's no way for the same
declaration block to appear in two similar paths of the rule tree
without different cascade levels.

I found this because if we want to implement the revert-layer CSS-wide
keyword, we need to put the layer order in the rule tree. However the
same thing applies: The same style source will always have the same
layer for a given cascade-data rebuild, so I believe this should be
fine.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c5f2e282204
Do not key rule tree children by cascade level. r=jwatt

Aye, I hadn't considered the same rule matching the same element in two different scopes... So I think the patch was wrong after all.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(emilio)
Resolution: --- → INVALID
Attachment #9239766 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: