style: Fix servo build and drop a FIXME there.

This commit is contained in:
Emilio Cobos Álvarez 2018-09-15 19:15:10 +02:00
parent 8aeaa3fc02
commit 278ab8613f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 17 additions and 2 deletions

View file

@ -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 {

View file

@ -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>,