From 49521baee7507dc0e5a85a626e98c2373e6e9d7a Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 11 Apr 2014 17:33:33 +0100 Subject: Rename ElementType to PseudoElementType, to avoid confusion with ElementTypeId. --- src/components/main/layout/construct.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/main/layout/construct.rs') diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index bf5ed0673d0..e3be9167d39 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -487,7 +487,7 @@ impl<'a> FlowConstructor<'a> { // List of absolute descendants, in tree order. let mut abs_descendants = Descendants::new(); for kid in node.children() { - if kid.get_element_type() != Normal { + if kid.get_pseudo_element_type() != Normal { self.process(&kid); } @@ -1127,7 +1127,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { let mut layout_data_ref = self.mutate_layout_data(); match &mut *layout_data_ref { &Some(ref mut layout_data) =>{ - match self.get_element_type() { + match self.get_pseudo_element_type() { Before | BeforeBlock => { layout_data.data.before_flow_construction_result = result }, @@ -1146,7 +1146,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { let mut layout_data_ref = self.mutate_layout_data(); match &mut *layout_data_ref { &Some(ref mut layout_data) => { - match self.get_element_type() { + match self.get_pseudo_element_type() { Before | BeforeBlock => { mem::replace(&mut layout_data.data.before_flow_construction_result, NoConstructionResult) -- cgit v1.2.3 From 583892bf6989250b2b50066eee28bf7c7c131d94 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 14 Apr 2014 15:22:23 +0100 Subject: fixup! Rename ElementType to PseudoElementType, to avoid confusion with ElementTypeId. --- src/components/main/layout/construct.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/main/layout/construct.rs') diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index e3be9167d39..b0451c363a7 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -558,7 +558,7 @@ impl<'a> FlowConstructor<'a> { // Concatenate all the boxes of our kids, creating {ib} splits as necessary. for kid in node.children() { - if kid.get_element_type() != Normal { + if kid.get_pseudo_element_type() != Normal { self.process(&kid); } match kid.swap_out_construction_result() { -- cgit v1.2.3