mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make use of Either<A, B> for LengthOrNone
This commit is contained in:
parent
5df250bc05
commit
c4fc49c559
10 changed files with 21 additions and 116 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue