mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update rust-layers to get 2d transform + clipping support.
This commit is contained in:
parent
2b9590c5a5
commit
30d9e75557
6 changed files with 10 additions and 10 deletions
|
@ -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 => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue