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)
Jul 19 2024, 9:53 AM
Unknown Object (File)
Jul 16 2024, 11:07 AM
Unknown Object (File)
Jul 15 2024, 4:31 PM
Unknown Object (File)
Jun 30 2024, 4:58 PM
Unknown Object (File)
Jun 19 2024, 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
Subscribers

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Branch
default
Lint
No Lint Coverage
Unit
No Test Coverage

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