diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-09-12 22:44:31 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-09-12 23:04:56 +0200 |
commit | cd3b0c23fa8971b312e2528711d220c834200061 (patch) | |
tree | 76cc30d6394cefb72b4290069754213d709676e2 /components/layout | |
parent | 9eaadc68600637268f19accf2ad7dec93d536285 (diff) | |
download | servo-cd3b0c23fa8971b312e2528711d220c834200061.tar.gz servo-cd3b0c23fa8971b312e2528711d220c834200061.zip |
style: Fix Servo build, and rustfmt recent changes.
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/display_list/builder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index cba26fe05a4..f951bd3f8f2 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -61,11 +61,11 @@ use style::properties::{style_structs, ComputedValues}; use style::servo::restyle_damage::ServoRestyleDamage; use style::values::computed::effects::SimpleShadow; use style::values::computed::image::{Image, ImageLayer}; -use style::values::computed::{Gradient, LengthOrAuto}; +use style::values::computed::{ClipRectOrAuto, Gradient, LengthOrAuto}; use style::values::generics::background::BackgroundSize; use style::values::generics::image::{GradientKind, PaintWorklet}; use style::values::specified::ui::CursorKind; -use style::values::{Either, RGBA}; +use style::values::RGBA; use style_traits::ToCss; use webrender_api::units::{LayoutRect, LayoutSize, LayoutTransform, LayoutVector2D}; use webrender_api::{self, BorderDetails, BorderRadius, BorderSide, BoxShadowClipMode, ColorF}; @@ -2632,8 +2632,8 @@ impl BlockFlow { ) { // Account for `clip` per CSS 2.1 § 11.1.2. let style_clip_rect = match self.fragment.style().get_effects().clip { - Either::First(style_clip_rect) => style_clip_rect, - _ => return, + ClipRectOrAuto::Rect(ref r) => r, + ClipRectOrAuto::Auto => return, }; // CSS `clip` should only apply to position:absolute or positione:fixed elements. |