mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Fix Servo build.
This commit is contained in:
parent
390d03da70
commit
aa03bf2e19
4 changed files with 27 additions and 14 deletions
|
@ -260,12 +260,8 @@ pub struct SpecifiedImageUrl(pub SpecifiedUrl);
|
|||
|
||||
impl SpecifiedImageUrl {
|
||||
/// Parse a URL from a string value that is a valid CSS token for a URL.
|
||||
pub fn parse_from_string(url: String, context: &ParserContext) -> Self {
|
||||
SpecifiedImageUrl(SpecifiedUrl::parse_from_string(
|
||||
url,
|
||||
context,
|
||||
CorsMode::None,
|
||||
))
|
||||
pub fn parse_from_string(url: String, context: &ParserContext, cors_mode: CorsMode) -> Self {
|
||||
SpecifiedImageUrl(SpecifiedUrl::parse_from_string(url, context, cors_mode))
|
||||
}
|
||||
|
||||
/// Provides an alternate method for parsing that associates the URL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue