aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorcku <cku@mozilla.com>2017-05-15 10:42:07 +0800
committercku <cku@mozilla.com>2017-05-16 02:34:16 +0800
commitf9b370719d7a17e2a5c89f0269788a4b50097452 (patch)
treedc31dcf0947c502a6e8375f6ea6bea0c199046b3 /components/layout/construct.rs
parentff5043c8b5f47f4a1df42532a869c8b56c96a2b3 (diff)
downloadservo-f9b370719d7a17e2a5c89f0269788a4b50097452.tar.gz
servo-f9b370719d7a17e2a5c89f0269788a4b50097452.zip
Stylo: Pass style list's image_value to gecko.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 2f24629b5e4..a3b062a5f4b 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -53,6 +53,7 @@ use style::computed_values::position;
use style::context::SharedStyleContext;
use style::logical_geometry::Direction;
use style::properties::ServoComputedValues;
+use style::properties::longhands::list_style_image;
use style::selector_parser::{PseudoElement, RestyleDamage};
use style::servo::restyle_damage::{BUBBLE_ISIZES, RECONSTRUCT_FLOW};
use style::values::Either;
@@ -1206,13 +1207,13 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
-> ConstructionResult {
let flotation = FloatKind::from_property(flotation);
let marker_fragments = match node.style(self.style_context()).get_list().list_style_image {
- Either::First(ref url_value) => {
+ list_style_image::computed_value::T(Either::First(ref url_value)) => {
let image_info = box ImageFragmentInfo::new(url_value.url().map(|u| u.clone()),
node,
&self.layout_context);
vec![Fragment::new(node, SpecificFragmentInfo::Image(image_info), self.layout_context)]
}
- Either::Second(_none) => {
+ list_style_image::computed_value::T(Either::Second(_none)) => {
match ListStyleTypeContent::from_list_style_type(node.style(self.style_context())
.get_list()
.list_style_type) {