diff options
author | Josh Matthews <josh@joshmatthews.net> | 2020-04-27 14:53:28 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-05-11 17:41:56 -0400 |
commit | 884225003358b3a4cdacc802e4b429e44f28d16f (patch) | |
tree | 10c77d981f8e6c19dc6565ce66467826371c776e /components/layout/display_list/builder.rs | |
parent | 41367b01bbb0e43a1d7f57f63cbd3099610f2544 (diff) | |
download | servo-884225003358b3a4cdacc802e4b429e44f28d16f.tar.gz servo-884225003358b3a4cdacc802e4b429e44f28d16f.zip |
Update webrender.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r-- | components/layout/display_list/builder.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index e4d20d48de7..3efb254cd32 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -70,7 +70,7 @@ use style_traits::ToCss; use webrender_api::units::{LayoutRect, LayoutTransform, LayoutVector2D}; use webrender_api::{self, BorderDetails, BorderRadius, BorderSide, BoxShadowClipMode, ColorF}; use webrender_api::{ColorU, ExternalScrollId, FilterOp, GlyphInstance, ImageRendering, LineStyle}; -use webrender_api::{NinePatchBorder, NinePatchBorderSource, NormalBorder}; +use webrender_api::{NinePatchBorder, NinePatchBorderSource, NormalBorder, PropertyBinding}; use webrender_api::{ScrollSensitivity, StickyOffsetBounds}; static THREAD_TINT_COLORS: [ColorF; 8] = [ @@ -721,8 +721,9 @@ impl Fragment { state.add_display_item(DisplayItem::Rectangle(CommonDisplayItem::new( base, webrender_api::RectangleDisplayItem { - color: background_color.to_layout(), + color: PropertyBinding::Value(background_color.to_layout()), common: items::empty_common_item_properties(), + bounds: bounds.to_layout(), }, ))); }); @@ -1468,7 +1469,8 @@ impl Fragment { base, webrender_api::RectangleDisplayItem { common: items::empty_common_item_properties(), - color: background_color.to_layout(), + color: PropertyBinding::Value(background_color.to_layout()), + bounds: stacking_relative_border_box.to_layout(), }, ))); } @@ -1514,7 +1516,8 @@ impl Fragment { base, webrender_api::RectangleDisplayItem { common: items::empty_common_item_properties(), - color: self.style().get_inherited_text().color.to_layout(), + color: PropertyBinding::Value(self.style().get_inherited_text().color.to_layout()), + bounds: insertion_point_bounds.to_layout(), }, ))); } @@ -1697,7 +1700,8 @@ impl Fragment { base, webrender_api::RectangleDisplayItem { common: items::empty_common_item_properties(), - color: ColorF::TRANSPARENT, + color: PropertyBinding::Value(ColorF::TRANSPARENT), + bounds: content_size.to_layout(), }, ))); } |