mirror of
https://github.com/servo/servo.git
synced 2025-10-02 01:29:15 +01:00
Rename LayerImage to ImageLayer and make it a type alias
This commit is contained in:
parent
fa5b46b6ee
commit
73f77e0a53
12 changed files with 47 additions and 101 deletions
|
@ -1800,7 +1800,7 @@ pub extern "C" fn Servo_DeclarationBlock_SetBackgroundImage(declarations:
|
|||
raw_extra_data: *mut URLExtraData) {
|
||||
use style::properties::PropertyDeclaration;
|
||||
use style::properties::longhands::background_image::SpecifiedValue as BackgroundImage;
|
||||
use style::properties::longhands::background_image::single_value::SpecifiedValue as SingleBackgroundImage;
|
||||
use style::values::Either;
|
||||
use style::values::generics::image::Image;
|
||||
use style::values::specified::url::SpecifiedUrl;
|
||||
|
||||
|
@ -1812,9 +1812,7 @@ pub extern "C" fn Servo_DeclarationBlock_SetBackgroundImage(declarations:
|
|||
QuirksMode::NoQuirks);
|
||||
if let Ok(url) = SpecifiedUrl::parse_from_string(string.into(), &context) {
|
||||
let decl = PropertyDeclaration::BackgroundImage(BackgroundImage(
|
||||
vec![SingleBackgroundImage(
|
||||
Some(Image::Url(url))
|
||||
)]
|
||||
vec![Either::Second(Image::Url(url))]
|
||||
));
|
||||
write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| {
|
||||
decls.push(decl, Importance::Normal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue