aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r--components/layout/display_list_builder.rs18
1 files changed, 10 insertions, 8 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs
index ec881ea9bcb..d5f3317cee5 100644
--- a/components/layout/display_list_builder.rs
+++ b/components/layout/display_list_builder.rs
@@ -612,14 +612,16 @@ impl FragmentDisplayListBuilding for Fragment {
style);
}
}
- Some(computed::Image::Url(ref image_url, ref _extra_data)) => {
- self.build_display_list_for_background_image(state,
- style,
- display_list_section,
- &bounds,
- &clip,
- image_url,
- i);
+ Some(computed::Image::Url(ref image_url)) => {
+ if let Some(url) = image_url.url() {
+ self.build_display_list_for_background_image(state,
+ style,
+ display_list_section,
+ &bounds,
+ &clip,
+ url,
+ i);
+ }
}
}
}