aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/builder.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-04-09 23:23:17 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-04-10 08:04:09 +0200
commiteaefaa890e5d37d9988448ff1dddea4f125a335e (patch)
treea0cafac4d066d7503b2a24bb59d2d42b59eca7a7 /components/selectors/builder.rs
parentbfb9fe6159ba61f0155a5ecc5a473b2a3edd6ef6 (diff)
downloadservo-eaefaa890e5d37d9988448ff1dddea4f125a335e.tar.gz
servo-eaefaa890e5d37d9988448ff1dddea4f125a335e.zip
style: Implement the functional :host(..) selector.
We could invalidate in a slightly more fine-grained way, but I don't think it's worth the churn vs. keeping the special-cases minimal. Bug: 1452640 Reviewed-by: xidorn MozReview-Commit-ID: 5DkQrgwg9GW
Diffstat (limited to 'components/selectors/builder.rs')
-rw-r--r--components/selectors/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/selectors/builder.rs b/components/selectors/builder.rs
index b81c729eea5..d4ed2d309b6 100644
--- a/components/selectors/builder.rs
+++ b/components/selectors/builder.rs
@@ -314,7 +314,7 @@ fn complex_selector_specificity<Impl>(mut iter: slice::Iter<Component<Impl>>)
Component::FirstChild | Component::LastChild |
Component::OnlyChild | Component::Root |
Component::Empty | Component::Scope |
- Component::Host |
+ Component::Host(..) |
Component::NthChild(..) |
Component::NthLastChild(..) |
Component::NthOfType(..) |