diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-23 23:32:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 23:32:32 -0800 |
commit | a9b0eb101f452278fa805dd04a5b4ab9d036be70 (patch) | |
tree | 8a4005cade948c2e7bd468421ea9a6a518640486 /components/style/selector_parser.rs | |
parent | 61a225bab0d82dd9a4e3b1cec910e78a02cf875a (diff) | |
parent | 22b62e091313824c8ca283f093d6dcc01a090a0c (diff) | |
download | servo-a9b0eb101f452278fa805dd04a5b4ab9d036be70.tar.gz servo-a9b0eb101f452278fa805dd04a5b4ab9d036be70.zip |
Auto merge of #14356 - heycam:nac-no-doc, r=emilio
stylo: don't match native anonymous content to user/author rules
<!-- Please describe your changes on the following line: -->
This makes us skip user and document style sheets when performing the cascade for Gecko native anonymous content. It was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1293809 by @emilio.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14356)
<!-- Reviewable:end -->
Diffstat (limited to 'components/style/selector_parser.rs')
-rw-r--r-- | components/style/selector_parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/style/selector_parser.rs b/components/style/selector_parser.rs index 98dc5a3e57d..1c281439256 100644 --- a/components/style/selector_parser.rs +++ b/components/style/selector_parser.rs @@ -101,6 +101,8 @@ impl PseudoElementCascadeType { pub trait ElementExt: Element<Impl=SelectorImpl> { fn is_link(&self) -> bool; + + fn matches_user_and_author_rules(&self) -> bool; } impl SelectorImpl { |