From 5c15f243082c608b1ce92c2ba9b3e6cfc0462cbd Mon Sep 17 00:00:00 2001 From: hyunjunekim Date: Wed, 9 Apr 2014 09:00:32 +0900 Subject: [PATCH 1/2] inline pseudo element --- src/components/main/layout/construct.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 398f915197b..84780f64873 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -558,6 +558,9 @@ 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 { + self.process(&kid); + } match kid.swap_out_construction_result() { NoConstructionResult => {} FlowConstructionResult(flow, kid_abs_descendants) => { From a6066e8c03e6832a98af755b941926ce49a85385 Mon Sep 17 00:00:00 2001 From: hyunjunekim Date: Wed, 9 Apr 2014 22:41:08 +0900 Subject: [PATCH 2/2] Add a reftest for the pseudo element --- src/test/html/test_pseudo.html | 22 ++++++++++++++++++++++ src/test/ref/basic.list | 1 + src/test/ref/pseudo_element_a.html | 22 ++++++++++++++++++++++ src/test/ref/pseudo_element_b.html | 18 ++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 src/test/html/test_pseudo.html create mode 100644 src/test/ref/pseudo_element_a.html create mode 100644 src/test/ref/pseudo_element_b.html diff --git a/src/test/html/test_pseudo.html b/src/test/html/test_pseudo.html new file mode 100644 index 00000000000..bfe528df145 --- /dev/null +++ b/src/test/html/test_pseudo.html @@ -0,0 +1,22 @@ + + + + + + + +, S +
, S
+Servo +
R
+ + diff --git a/src/test/ref/basic.list b/src/test/ref/basic.list index d59e1fb229f..55b6aad9506 100644 --- a/src/test/ref/basic.list +++ b/src/test/ref/basic.list @@ -66,3 +66,4 @@ == background_repeat_none_a.html background_repeat_none_b.html == background_repeat_both_a.html background_repeat_both_b.html == setattribute_id_restyle_a.html setattribute_id_restyle_b.html +== pseudo_element_a.html pseudo_element_b.html diff --git a/src/test/ref/pseudo_element_a.html b/src/test/ref/pseudo_element_a.html new file mode 100644 index 00000000000..4700d0e593a --- /dev/null +++ b/src/test/ref/pseudo_element_a.html @@ -0,0 +1,22 @@ + + + + + + + +, S +
, S
+Servo +
R
+ + diff --git a/src/test/ref/pseudo_element_b.html b/src/test/ref/pseudo_element_b.html new file mode 100644 index 00000000000..892ce7ed4d9 --- /dev/null +++ b/src/test/ref/pseudo_element_b.html @@ -0,0 +1,18 @@ + + + + + + + +Hello, Servo +
Hello, Servo
+
Smile
+Servo +
And thanks
+
Hello,
+Rust + +