aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list/builder.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-02-16 12:56:35 +0100
committerGitHub <noreply@github.com>2024-02-16 11:56:35 +0000
commit9a6973d629a6560367db8542cc958a41a1c83902 (patch)
tree4ad7acc99c1346a15e6c9a38b8a5b514dcebea0c /components/layout/display_list/builder.rs
parent29e1dfe1e4191a26708b2edee60823af2a6960bf (diff)
downloadservo-9a6973d629a6560367db8542cc958a41a1c83902.tar.gz
servo-9a6973d629a6560367db8542cc958a41a1c83902.zip
style: Remove dependency on servo_url (#31358)
In order for stylo to be a separate crate, it needs to depend on less things from Servo. This change makes it so that stylo no longer depends on servo_url.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r--components/layout/display_list/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs
index 1eaee7bc37f..753b7747c9f 100644
--- a/components/layout/display_list/builder.rs
+++ b/components/layout/display_list/builder.rs
@@ -734,7 +734,7 @@ impl Fragment {
if let Some(url) = image_url.url() {
let webrender_image = state.layout_context.get_webrender_image_for_url(
self.node,
- url.clone(),
+ url.clone().into(),
UsePlaceholder::No,
);
if let Some(webrender_image) = webrender_image {
@@ -1205,7 +1205,7 @@ impl Fragment {
let url = image_url.url()?;
let image = state.layout_context.get_webrender_image_for_url(
self.node,
- url.clone(),
+ url.clone().into(),
UsePlaceholder::No,
)?;
width = image.width;