mirror of
https://github.com/servo/servo.git
synced 2025-09-01 18:48:23 +01:00
Stylo: Pass LayerImage's image_value to gecko.
This commit is contained in:
parent
2fe55e82d3
commit
f7e3c534e3
2 changed files with 5 additions and 4 deletions
|
@ -1845,7 +1845,8 @@ pub extern "C" fn Servo_DeclarationBlock_SetBackgroundImage(declarations:
|
|||
let context = ParserContext::new(Origin::Author, url_data, &error_reporter,
|
||||
Some(CssRuleType::Style), PARSING_MODE_DEFAULT,
|
||||
QuirksMode::NoQuirks);
|
||||
if let Ok(url) = SpecifiedUrl::parse_from_string(string.into(), &context) {
|
||||
if let Ok(mut url) = SpecifiedUrl::parse_from_string(string.into(), &context) {
|
||||
url.build_image_value();
|
||||
let decl = PropertyDeclaration::BackgroundImage(BackgroundImage(
|
||||
vec![Either::Second(Image::Url(url))]
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue