mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
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.
This commit is contained in:
parent
29e1dfe1e4
commit
9a6973d629
42 changed files with 236 additions and 144 deletions
|
@ -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(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue