diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2017-07-19 19:45:24 +0800 |
---|---|---|
committer | Boris Chiou <boris.chiou@gmail.com> | 2017-08-04 14:21:21 +0800 |
commit | 4cc97746f239b70a196ce2929e38c1d4ffe353ef (patch) | |
tree | 1bd794d95c7919bb44d8940a5161edaeedef6d8b /components/layout/flex.rs | |
parent | 50c9797ddd7b206c96f9436c634d915efe4acc17 (diff) | |
download | servo-4cc97746f239b70a196ce2929e38c1d4ffe353ef.tar.gz servo-4cc97746f239b70a196ce2929e38c1d4ffe353ef.zip |
Bug 1374233 - Part 1: Add NonNegativeNumber and GreaterThanOrEqualToOneNumber.
NonNegativeNumber: for -moz-box-flex, flex-grow, and flex-shrink.
GreaterThanOrEqualToOneNumber: for stroke-miterlimit.
MozReview-Commit-ID: Kgbt99BPdVA
Diffstat (limited to 'components/layout/flex.rs')
-rw-r--r-- | components/layout/flex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/flex.rs b/components/layout/flex.rs index 353c939f58b..577e9a167de 100644 --- a/components/layout/flex.rs +++ b/components/layout/flex.rs @@ -137,8 +137,8 @@ impl FlexItem { min_size: Au(0), max_size: MAX_AU, index: index, - flex_grow: flex_grow, - flex_shrink: flex_shrink, + flex_grow: flex_grow.into(), + flex_shrink: flex_shrink.into(), order: order, is_frozen: false, is_strut: false |