mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Split CssUrl from SpecifiedUrl for non-value URLs.
This commit is contained in:
parent
0090fbb3c8
commit
fa5d76c395
10 changed files with 86 additions and 47 deletions
|
@ -152,7 +152,8 @@ impl Image {
|
|||
/// for insertion in the cascade.
|
||||
#[cfg(feature = "servo")]
|
||||
pub fn for_cascade(url: ServoUrl) -> Self {
|
||||
GenericImage::Url(SpecifiedUrl::for_cascade(url))
|
||||
use values::CssUrl;
|
||||
GenericImage::Url(CssUrl::for_cascade(url))
|
||||
}
|
||||
|
||||
/// Parses a `-moz-element(# <element-id>)`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue