aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font_cache_thread.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/gfx/font_cache_thread.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/gfx/font_cache_thread.rs')
-rw-r--r--components/gfx/font_cache_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs
index 0dc80939aef..bc8e7680417 100644
--- a/components/gfx/font_cache_thread.rs
+++ b/components/gfx/font_cache_thread.rs
@@ -276,7 +276,7 @@ impl FontCache {
// FIXME:
// This shouldn't use NoReferrer, but the current documents url
- let request = RequestBuilder::new(url.clone(), Referrer::NoReferrer)
+ let request = RequestBuilder::new(url.clone().into(), Referrer::NoReferrer)
.destination(Destination::Font);
let channel_to_self = self.channel_to_self.clone();
@@ -334,7 +334,7 @@ impl FontCache {
};
let command = Command::AddDownloadedWebFont(
family_name.clone(),
- url.clone(),
+ url.clone().into(),
bytes,
sender.clone(),
);