Move Percentage from length.rs to mod.rs

This commit is contained in:
DarkDrek 2017-08-08 16:43:54 +02:00
parent 82de4c49f3
commit a5b585a5f1
8 changed files with 166 additions and 171 deletions

View file

@ -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();

View file

@ -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() {

View file

@ -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() {