Don't reject out of bound calc() values at parsing-time

https://bugzilla.mozilla.org/show_bug.cgi?id=1355014
This commit is contained in:
Anthony Ramine 2017-04-12 11:46:22 +02:00
parent 12d46e7d01
commit dfbd89860a
5 changed files with 70 additions and 29 deletions

View file

@ -71,8 +71,8 @@ impl From<SpecifiedTimingFunction> for nsTimingFunction {
},
SpecifiedTimingFunction::CubicBezier(p1, p2) => {
tf.set_as_bezier(nsTimingFunction_Type::CubicBezier,
Point2D::new(p1.x.value, p1.y.value),
Point2D::new(p2.x.value, p2.y.value));
Point2D::new(p1.x.get(), p1.y.get()),
Point2D::new(p2.x.get(), p2.y.get()));
},
SpecifiedTimingFunction::Keyword(keyword) => {
match keyword.to_computed_value() {