mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Move Percentage from length.rs to mod.rs
This commit is contained in:
parent
82de4c49f3
commit
a5b585a5f1
8 changed files with 166 additions and 171 deletions
|
@ -8,7 +8,7 @@ use style::properties::animated_properties::Animatable;
|
|||
use style::properties::longhands::transform::computed_value::ComputedOperation as TransformOperation;
|
||||
use style::properties::longhands::transform::computed_value::T as TransformList;
|
||||
use style::values::animated::ToAnimatedValue;
|
||||
use style::values::computed::length::Percentage;
|
||||
use style::values::computed::Percentage;
|
||||
|
||||
fn interpolate_rgba(from: RGBA, to: RGBA, progress: f64) -> RGBA {
|
||||
let from = from.to_animated_value();
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
|
||||
use app_units::Au;
|
||||
use style::attr::{AttrValue, LengthOrPercentageOrAuto, parse_length};
|
||||
use style::values::computed::CalcLengthOrPercentage;
|
||||
use style::values::computed::length::Percentage;
|
||||
use style::values::computed::{CalcLengthOrPercentage, Percentage};
|
||||
|
||||
#[test]
|
||||
fn test_length_calc() {
|
||||
|
|
|
@ -353,8 +353,7 @@ mod shorthand_serialization {
|
|||
assert_eq!(serialization, "border-style: solid dotted;");
|
||||
}
|
||||
|
||||
use style::values::specified::BorderCornerRadius;
|
||||
use style::values::specified::length::Percentage;
|
||||
use style::values::specified::{BorderCornerRadius, Percentage};
|
||||
|
||||
#[test]
|
||||
fn border_radius_should_serialize_correctly() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue