From 1aa11d21e13e4a8cc6674ea65611e66bc7e8cdd0 Mon Sep 17 00:00:00 2001 From: WR Updater Bot Date: Fri, 14 Dec 2018 21:45:07 +0000 Subject: [PATCH] Bug 1514382 - Update webrender to commit fab59ceef070c11aba2a86c4ddf6ddc3c4e8f97d (WR PR #3417). r=kats https://github.com/servo/webrender/pull/3417 Differential Revision: https://phabricator.services.mozilla.com/D14624 --HG-- extra : moz-landing-system : lando --- gfx/webrender_bindings/revision.txt | 2 +- gfx/wr/webrender/src/clip.rs | 5 +++++ gfx/wr/webrender/src/frame_builder.rs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/revision.txt b/gfx/webrender_bindings/revision.txt index 45b881c8536b..8a6a63ef9787 100644 --- a/gfx/webrender_bindings/revision.txt +++ b/gfx/webrender_bindings/revision.txt @@ -1 +1 @@ -40aa1851b6453108d1c47a3264360362b9b2d053 +fab59ceef070c11aba2a86c4ddf6ddc3c4e8f97d diff --git a/gfx/wr/webrender/src/clip.rs b/gfx/wr/webrender/src/clip.rs index 25ff86c7594e..87c46a8cf957 100644 --- a/gfx/wr/webrender/src/clip.rs +++ b/gfx/wr/webrender/src/clip.rs @@ -696,6 +696,11 @@ impl ClipStore { }) } + pub fn clear_old_instances(&mut self) { + self.clip_node_instances.clear(); + } + + /// Walk the clip chain of a primitive, and calculate a minimal /// local clip rect for the primitive. #[allow(dead_code)] diff --git a/gfx/wr/webrender/src/frame_builder.rs b/gfx/wr/webrender/src/frame_builder.rs index 6b41bf7cb64c..d5ac824024a0 100644 --- a/gfx/wr/webrender/src/frame_builder.rs +++ b/gfx/wr/webrender/src/frame_builder.rs @@ -407,6 +407,7 @@ impl FrameBuilder { scene_properties, Some(&mut transform_palette), ); + self.clip_store.clear_old_instances(); let mut render_tasks = RenderTaskTree::new(stamp.frame_id()); let mut surfaces = Vec::new();