diff options
author | J. Ryan Stinnett <jryans@gmail.com> | 2017-05-15 10:13:22 -0500 |
---|---|---|
committer | J. Ryan Stinnett <jryans@gmail.com> | 2017-05-16 09:19:28 -0500 |
commit | e385b81fc3cae3c50f0d897e46f640d2811eb359 (patch) | |
tree | d751ad7bc22841afed3c47b180fd752a8593f71a /components/script/layout_wrapper.rs | |
parent | 0388e11db2532d41a71e184cb2a1f46e5107b8f5 (diff) | |
download | servo-e385b81fc3cae3c50f0d897e46f640d2811eb359.tar.gz servo-e385b81fc3cae3c50f0d897e46f640d2811eb359.zip |
Create a MatchingContext to group related matching args
MozReview-Commit-ID: 7XZTn7HDXrm
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 3d4b90eaeab..5cea48786e3 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -50,7 +50,7 @@ use script_layout_interface::{HTMLCanvasData, LayoutNodeType, SVGSVGData, Truste use script_layout_interface::{OpaqueStyleAndLayoutData, PartialPersistentLayoutData}; use script_layout_interface::wrapper_traits::{DangerousThreadSafeLayoutNode, GetLayoutData, LayoutNode}; use script_layout_interface::wrapper_traits::{PseudoElementType, ThreadSafeLayoutElement, ThreadSafeLayoutNode}; -use selectors::matching::{ElementSelectorFlags, StyleRelations}; +use selectors::matching::{ElementSelectorFlags, MatchingContext}; use selectors::parser::{AttrSelector, NamespaceConstraint}; use servo_atoms::Atom; use servo_url::ServoUrl; @@ -654,7 +654,7 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> { fn match_non_ts_pseudo_class<F>(&self, pseudo_class: &NonTSPseudoClass, - _: &mut StyleRelations, + _: &mut MatchingContext, _: &mut F) -> bool where F: FnMut(&Self, ElementSelectorFlags), @@ -1152,7 +1152,7 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> { fn match_non_ts_pseudo_class<F>(&self, _: &NonTSPseudoClass, - _: &mut StyleRelations, + _: &mut MatchingContext, _: &mut F) -> bool where F: FnMut(&Self, ElementSelectorFlags), |