aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list/builder.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-06-03 08:44:57 -0400
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-06-04 01:04:02 -0400
commit2e5078e9c50b58873b199297be5ccae672c14c6e (patch)
tree03dce04a3569cdd70acdc022ccd47576ed763f00 /components/layout/display_list/builder.rs
parentaa03bf2e19e42f5e28f679d010434d7f4b4d2db8 (diff)
downloadservo-2e5078e9c50b58873b199297be5ccae672c14c6e.tar.gz
servo-2e5078e9c50b58873b199297be5ccae672c14c6e.zip
layout: Fix servo build.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r--components/layout/display_list/builder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs
index cc2585c3043..08fad71b4ea 100644
--- a/components/layout/display_list/builder.rs
+++ b/components/layout/display_list/builder.rs
@@ -1489,7 +1489,7 @@ impl Fragment {
state.add_display_item(DisplayItem::Rectangle(CommonDisplayItem::new(
base,
webrender_api::RectangleDisplayItem {
- color: self.style().get_color().color.to_layout(),
+ color: self.style().get_inherited_text().color.to_layout(),
},
)));
}
@@ -1967,9 +1967,9 @@ impl Fragment {
// TODO(emilio): Allow changing more properties by ::selection
// Paint the text with the color as described in its styling.
let text_color = if text_fragment.selected() {
- self.selected_style().get_color().color
+ self.selected_style().get_inherited_text().color
} else {
- self.style().get_color().color
+ self.style().get_inherited_text().color
};
// Determine the orientation and cursor to use.