Page MenuHomePhabricator

Bug 1860136: Fix up check for subject/non-subject match in relative selector invalidation. r=emilio
ClosedPublic

Authored by dshin on Oct 19 2023, 8:43 PM.
Referenced Files
Unknown Object (File)
Sun, Jun 30, 4:58 PM
Unknown Object (File)
Wed, Jun 19, 2:12 AM
Unknown Object (File)
Jun 14 2024, 6:32 PM
Unknown Object (File)
Jun 11 2024, 5:28 AM
Unknown Object (File)
Jun 7 2024, 6:38 AM
Unknown Object (File)
Jun 7 2024, 4:40 AM
Unknown Object (File)
Jun 6 2024, 11:46 PM
Unknown Object (File)
Jun 4 2024, 7:41 AM
Subscribers

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Lint Not Applicable
Unit
Tests Not Applicable
Build Status
Buildable 590139
Build 688224: arc lint + arc unit

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
emilio added a project: testing-approved.
emilio added inline comments.
servo/components/style/invalidation/element/relative_selector.rs
557–573

You can bail out early if !outer_dependency.selector.has_pseudo_element()

561

Might be cleaner as:

if let Component::Combinator(c) = c {
    if !c.is_pseudo_element() {
        return false;
    }
}
This revision is now accepted and ready to land.Oct 20 2023, 10:08 AM