mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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(),
|
||||
}
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
|
|
|
@ -167,8 +167,11 @@ impl Image {
|
|||
})
|
||||
}
|
||||
|
||||
/// Provides an alternate method for parsing that associates the URL
|
||||
/// with anonymous CORS headers.
|
||||
/// Provides an alternate method for parsing that associates the URL with
|
||||
/// 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>(
|
||||
context: &ParserContext,
|
||||
input: &mut Parser<'i, 't>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue