mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +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
|
@ -109,7 +109,7 @@ use style::sink::Push;
|
|||
use style::stylearc::Arc;
|
||||
use style::stylist::ApplicableDeclarationBlock;
|
||||
use style::thread_state;
|
||||
use style::values::CSSFloat;
|
||||
use style::values::{CSSFloat, Either};
|
||||
use style::values::specified::{self, CSSColor};
|
||||
use stylesheet_loader::StylesheetOwner;
|
||||
|
||||
|
@ -427,9 +427,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
shared_lock,
|
||||
PropertyDeclaration::BackgroundImage(
|
||||
background_image::SpecifiedValue(vec![
|
||||
background_image::single_value::SpecifiedValue(Some(
|
||||
specified::Image::for_cascade(url.into())
|
||||
))
|
||||
Either::Second(specified::Image::for_cascade(url.into()))
|
||||
]))));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue