mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Merge request type and destination
This commit is contained in:
parent
48c715c1c8
commit
c6bb1cb9d5
20 changed files with 88 additions and 152 deletions
|
@ -7,7 +7,7 @@ use font_template::{FontTemplate, FontTemplateDescriptor};
|
|||
use fontsan;
|
||||
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
|
||||
use net_traits::{CoreResourceThread, FetchResponseMsg, fetch_async};
|
||||
use net_traits::request::{Destination, RequestInit, Type as RequestType};
|
||||
use net_traits::request::{Destination, RequestInit};
|
||||
use platform::font_context::FontContextHandle;
|
||||
use platform::font_list::SANS_SERIF_FONT_FAMILY;
|
||||
use platform::font_list::for_each_available_family;
|
||||
|
@ -237,7 +237,6 @@ impl FontCache {
|
|||
|
||||
let request = RequestInit {
|
||||
url: url.clone(),
|
||||
type_: RequestType::Font,
|
||||
destination: Destination::Font,
|
||||
// TODO: Add a proper origin - Can't import GlobalScope from gfx
|
||||
// We can leave origin to be set by default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue