mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Fix servo build and drop a FIXME there.
This commit is contained in:
parent
8aeaa3fc02
commit
278ab8613f
2 changed files with 17 additions and 2 deletions
|
@ -98,6 +98,18 @@ impl CssUrl {
|
||||||
resolved: ServoUrl::parse(url).ok(),
|
resolved: ServoUrl::parse(url).ok(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Parses a URL request and records that the corresponding request needs to
|
||||||
|
/// be CORS-enabled.
|
||||||
|
///
|
||||||
|
/// This is only for shape images and masks in Gecko, thus unimplemented for
|
||||||
|
/// now so somebody notices when trying to do so.
|
||||||
|
pub fn parse_with_cors_anonymous<'i, 't>(
|
||||||
|
_context: &ParserContext,
|
||||||
|
_input: &mut Parser<'i, 't>,
|
||||||
|
) -> Result<Self, ParseError<'i>> {
|
||||||
|
unimplemented!("Need to record somewhere that the request needs to be CORS-enabled")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Parse for CssUrl {
|
impl Parse for CssUrl {
|
||||||
|
|
|
@ -167,8 +167,11 @@ impl Image {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Provides an alternate method for parsing that associates the URL
|
/// Provides an alternate method for parsing that associates the URL with
|
||||||
/// with anonymous CORS headers.
|
/// anonymous CORS headers.
|
||||||
|
///
|
||||||
|
/// FIXME(emilio): It'd be nicer for this to pass a `CorsMode` parameter to
|
||||||
|
/// a shared function instead.
|
||||||
pub fn parse_with_cors_anonymous<'i, 't>(
|
pub fn parse_with_cors_anonymous<'i, 't>(
|
||||||
context: &ParserContext,
|
context: &ParserContext,
|
||||||
input: &mut Parser<'i, 't>,
|
input: &mut Parser<'i, 't>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue