aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/traversal.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-15 11:18:29 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-19 15:01:26 +0200
commit5c7dc4c633d412bf9cfc0c0cc97a5f26c605d21d (patch)
tree9d8be2700df36ca7ecda3789a2e8eb806f0ea449 /components/layout/traversal.rs
parenta9f75b7c4f738987dc8129896196b05fdf9c072a (diff)
downloadservo-5c7dc4c633d412bf9cfc0c0cc97a5f26c605d21d.tar.gz
servo-5c7dc4c633d412bf9cfc0c0cc97a5f26c605d21d.zip
Define match_node on LayoutElement as match_element.
Diffstat (limited to 'components/layout/traversal.rs')
-rw-r--r--components/layout/traversal.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs
index cee485d62ce..1b0c3782e75 100644
--- a/components/layout/traversal.rs
+++ b/components/layout/traversal.rs
@@ -6,7 +6,7 @@
use construct::FlowConstructor;
use context::LayoutContext;
-use css::matching::{ApplicableDeclarations, MatchMethods, StyleSharingResult};
+use css::matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleSharingResult};
use flow::{MutableFlowUtils, PostorderFlowTraversal, PreorderFlowTraversal};
use flow::{self, Flow};
use incremental::{self, BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW, RestyleDamage};
@@ -174,13 +174,13 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
StyleSharingResult::CannotShare(mut shareable) => {
let mut applicable_declarations = ApplicableDeclarations::new();
- if node.as_element().is_some() {
+ if let Some(element) = node.as_element() {
// Perform the CSS selector matching.
let stylist = unsafe { &*self.layout_context.shared.stylist };
- node.match_node(stylist,
- Some(&*bf),
- &mut applicable_declarations,
- &mut shareable);
+ element.match_element(stylist,
+ Some(&*bf),
+ &mut applicable_declarations,
+ &mut shareable);
} else if node.has_changed() {
ThreadSafeLayoutNode::new(&node).set_restyle_damage(
incremental::rebuild_and_reflow())