mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
use Either type for UrlOrNone
fix test-tidy errors fix style unit test use the Parse trait instead of ParseWithContext fix stylo test and geckolib build move all specified url parse code to parse trait and remove refs to unused type
This commit is contained in:
parent
7be32770b1
commit
206f4ea5b8
9 changed files with 30 additions and 49 deletions
|
@ -418,9 +418,9 @@ mod shorthand_serialization {
|
|||
}
|
||||
|
||||
mod list_style {
|
||||
use style::properties::longhands::list_style_image::SpecifiedValue as ListStyleImage;
|
||||
use style::properties::longhands::list_style_position::computed_value::T as ListStylePosition;
|
||||
use style::properties::longhands::list_style_type::computed_value::T as ListStyleType;
|
||||
use style::values::Either;
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
@ -428,7 +428,7 @@ mod shorthand_serialization {
|
|||
let mut properties = Vec::new();
|
||||
|
||||
let position = DeclaredValue::Value(ListStylePosition::inside);
|
||||
let image = DeclaredValue::Value(ListStyleImage::Url(
|
||||
let image = DeclaredValue::Value(Either::First(
|
||||
SpecifiedUrl::new_for_testing("http://servo/test.png")));
|
||||
let style_type = DeclaredValue::Value(ListStyleType::disc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue