diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index b3830a11140..cfa5f68a4e0 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1238,10 +1238,10 @@ impl IOCompositor { request.page_rect = request.page_rect / scale.get(); } - let layer_kind = if layer.transform_state.borrow().is_3d { - LayerKind::Layer3D + let layer_kind = if layer.transform_state.borrow().has_transform { + LayerKind::HasTransform } else { - LayerKind::Layer2D + LayerKind::NoTransform }; let mut paint_request = PaintRequest { diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index 20e375d166b..eda83adf795 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -423,7 +423,7 @@ impl StackingContext { // TODO(gw): This is a hack to avoid running the DL optimizer // on 3d transformed tiles. We should have a better solution // than just disabling the opts here. - if paint_context.layer_kind == LayerKind::Layer3D { + if paint_context.layer_kind == LayerKind::HasTransform { self.draw_into_context(&self.display_list, paint_context, &transform, @@ -1022,7 +1022,7 @@ impl<'a> Iterator for DisplayItemIterator<'a> { impl DisplayItem { /// Paints this display item into the given painting context. fn draw_into_context(&self, paint_context: &mut PaintContext) { - if paint_context.layer_kind == LayerKind::Layer2D { + if paint_context.layer_kind == LayerKind::NoTransform { let this_clip = &self.base().clip; match paint_context.transient_clip { Some(ref transient_clip) if transient_clip == this_clip => {} diff --git a/components/msg/compositor_msg.rs b/components/msg/compositor_msg.rs index 3a1d098eb36..a3e42af041d 100644 --- a/components/msg/compositor_msg.rs +++ b/components/msg/compositor_msg.rs @@ -55,8 +55,8 @@ impl LayerId { #[derive(Clone, Copy, Debug, PartialEq)] pub enum LayerKind { - Layer2D, - Layer3D, + NoTransform, + HasTransform, } /// The scrolling policy of a layer. diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index 5b0bd7821f8..141972c796b 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -747,7 +747,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#e2283b8ec3d3eb2e10afa8a318deda71dd59d11a" +source = "git+https://github.com/servo/rust-layers#c4fa565228a9741a1c138a96421fcbd156ad1e45" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index 540b703e776..df7861c8be0 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -739,7 +739,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#e2283b8ec3d3eb2e10afa8a318deda71dd59d11a" +source = "git+https://github.com/servo/rust-layers#c4fa565228a9741a1c138a96421fcbd156ad1e45" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 7cd3d657a19..0b54c4b966e 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -671,7 +671,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#e2283b8ec3d3eb2e10afa8a318deda71dd59d11a" +source = "git+https://github.com/servo/rust-layers#c4fa565228a9741a1c138a96421fcbd156ad1e45" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",