aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/display_list/mod.rs
diff options
context:
space:
mode:
authorDzmitry Malyshau <kvark@mozilla.com>2017-05-05 15:23:41 -0400
committerDzmitry Malyshau <kvark@mozilla.com>2017-05-16 11:08:32 -0400
commitd04a64394efb40adeadf0dd950247d2a08ba13b0 (patch)
treed11e0fa61b195b6c40949968190e4700f90d6fde /components/gfx/display_list/mod.rs
parent0388e11db2532d41a71e184cb2a1f46e5107b8f5 (diff)
downloadservo-d04a64394efb40adeadf0dd950247d2a08ba13b0.tar.gz
servo-d04a64394efb40adeadf0dd950247d2a08ba13b0.zip
Using TransformStyle::Preserve3D
Diffstat (limited to 'components/gfx/display_list/mod.rs')
-rw-r--r--components/gfx/display_list/mod.rs18
1 files changed, 12 insertions, 6 deletions
diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs
index ac1db774f10..d0ea9036a75 100644
--- a/components/gfx/display_list/mod.rs
+++ b/components/gfx/display_list/mod.rs
@@ -30,11 +30,11 @@ use std::cmp::{self, Ordering};
use std::collections::HashMap;
use std::fmt;
use std::sync::Arc;
-use style::computed_values::{border_style, filter, image_rendering, mix_blend_mode};
+use style::computed_values::{border_style, filter, image_rendering};
use style_traits::cursor::Cursor;
use text::TextRun;
use text::glyph::ByteIndex;
-use webrender_traits::{self, ClipId, ColorF, GradientStop, ScrollPolicy, WebGLContextId};
+use webrender_traits::{self, ClipId, ColorF, GradientStop, MixBlendMode, ScrollPolicy, TransformStyle, WebGLContextId};
pub use style::dom::OpaqueNode;
@@ -375,11 +375,14 @@ pub struct StackingContext {
pub filters: filter::T,
/// The blend mode with which this stacking context blends with its backdrop.
- pub blend_mode: mix_blend_mode::T,
+ pub mix_blend_mode: MixBlendMode,
/// A transform to be applied to this stacking context.
pub transform: Option<Matrix4D<f32>>,
+ /// The transform style of this stacking context.
+ pub transform_style: TransformStyle,
+
/// The perspective matrix to be applied to children.
pub perspective: Option<Matrix4D<f32>>,
@@ -399,8 +402,9 @@ impl StackingContext {
overflow: &Rect<Au>,
z_index: i32,
filters: filter::T,
- blend_mode: mix_blend_mode::T,
+ mix_blend_mode: MixBlendMode,
transform: Option<Matrix4D<f32>>,
+ transform_style: TransformStyle,
perspective: Option<Matrix4D<f32>>,
scroll_policy: ScrollPolicy,
parent_scroll_id: ClipId)
@@ -412,8 +416,9 @@ impl StackingContext {
overflow: *overflow,
z_index: z_index,
filters: filters,
- blend_mode: blend_mode,
+ mix_blend_mode: mix_blend_mode,
transform: transform,
+ transform_style: transform_style,
perspective: perspective,
scroll_policy: scroll_policy,
parent_scroll_id: parent_scroll_id,
@@ -428,8 +433,9 @@ impl StackingContext {
&Rect::zero(),
0,
filter::T::new(Vec::new()),
- mix_blend_mode::T::normal,
+ MixBlendMode::Normal,
None,
+ TransformStyle::Flat,
None,
ScrollPolicy::Scrollable,
pipeline_id.root_scroll_node())