diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-11-02 13:17:34 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-11-07 10:07:34 -0800 |
commit | b69fdad8e44d77b5a946ee4155ab3da3320d93cd (patch) | |
tree | 486b52660b7f9f6816fbc78db822b98a52c483cc /components/style/selector_matching.rs | |
parent | 958806512054edc1cdf6522e5a882c2c8d692fe1 (diff) | |
download | servo-b69fdad8e44d77b5a946ee4155ab3da3320d93cd.tar.gz servo-b69fdad8e44d77b5a946ee4155ab3da3320d93cd.zip |
Stop using associated types for the concrete ElementSnapshot implementation.
MozReview-Commit-ID: LS23s2RbMBg
Diffstat (limited to 'components/style/selector_matching.rs')
-rw-r--r-- | components/style/selector_matching.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index 1a0a07b32e4..3cac2d48670 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -16,7 +16,7 @@ use properties::{PropertyDeclaration, PropertyDeclarationBlock}; use quickersort::sort_by; use restyle_hints::{RestyleHint, DependencySet}; use rule_tree::{RuleTree, StrongRuleNode, StyleSource}; -use selector_impl::{ElementExt, TheSelectorImpl, PseudoElement}; +use selector_impl::{ElementExt, TheSelectorImpl, PseudoElement, Snapshot}; use selectors::Element; use selectors::bloom::BloomFilter; use selectors::matching::{AFFECTED_BY_STYLE_ATTRIBUTE, AFFECTED_BY_PRESENTATIONAL_HINTS}; @@ -611,7 +611,7 @@ impl Stylist { } pub fn compute_restyle_hint<E>(&self, element: &E, - snapshot: &E::Snapshot, + snapshot: &Snapshot, // NB: We need to pass current_state as an argument because // selectors::Element doesn't provide access to ElementState // directly, and computing it from the ElementState would be |