aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authorRavi Shankar <wafflespeanut@gmail.com>2016-11-03 21:29:47 +0530
committerRavi Shankar <wafflespeanut@gmail.com>2016-11-09 13:04:26 +0530
commitc4fc49c55908f62b3a63ab72da492db9017d1aff (patch)
tree8d2600c33fa0c143588ce7fa8903039779c728c8 /components/layout/fragment.rs
parent5df250bc053a15752faf3006927e251c5d116768 (diff)
downloadservo-c4fc49c55908f62b3a63ab72da492db9017d1aff.tar.gz
servo-c4fc49c55908f62b3a63ab72da492db9017d1aff.zip
Make use of Either<A, B> for LengthOrNone
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 1fa3ae0612a..e1079804f20 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -49,7 +49,8 @@ use style::properties::ServoComputedValues;
use style::selector_impl::RestyleDamage;
use style::servo::restyle_damage::RECONSTRUCT_FLOW;
use style::str::char_is_whitespace;
-use style::values::computed::{LengthOrNone, LengthOrPercentage, LengthOrPercentageOrAuto};
+use style::values::Either;
+use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto};
use style::values::computed::LengthOrPercentageOrNone;
use text;
use text::TextRunScanner;
@@ -2579,7 +2580,7 @@ impl Fragment {
// TODO(mrobinson): Determine if this is necessary, since blocks with
// transformations already create stacking contexts.
- if self.style().get_effects().perspective != LengthOrNone::None {
+ if let Either::First(ref _length) = self.style().get_effects().perspective {
return true
}