aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-29 03:32:28 +0200
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-30 14:28:12 +0200
commit359f7b79531051e1ba7c00c071e95fbd47d3fd5d (patch)
treea8e5d532e4fbf14406b018566d33d928a6fc90b4 /components/layout/construct.rs
parent5303048c06b4d07e6b0b82eadf9044c1900fa1b4 (diff)
downloadservo-359f7b79531051e1ba7c00c071e95fbd47d3fd5d.tar.gz
servo-359f7b79531051e1ba7c00c071e95fbd47d3fd5d.zip
layout: Fix whitespace selected style
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 60713082436..6d9c1f29766 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -586,8 +586,8 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
properties::modify_style_for_text(&mut whitespace_style);
let fragment = Fragment::from_opaque_node_and_style(whitespace_node,
whitespace_pseudo,
- whitespace_style.clone(),
whitespace_style,
+ node.selected_style().clone(),
whitespace_damage,
fragment_info);
inline_fragment_accumulator.fragments.fragments.push_back(fragment);
@@ -874,8 +874,8 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
properties::modify_style_for_text(&mut whitespace_style);
let fragment = Fragment::from_opaque_node_and_style(whitespace_node,
whitespace_pseudo,
- whitespace_style.clone(),
whitespace_style,
+ node.selected_style().clone(),
whitespace_damage,
fragment_info);
fragment_accumulator.fragments.fragments.push_back(fragment)