From f5c662cbbd2ad40fd78fba4f17c25c7da3d522ab Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Tue, 24 Feb 2015 20:40:10 -0800 Subject: [PATCH] Fix clipping of content outside the bounds of the window. https://codereview.chromium.org/899753003 incorrectly passed down the RenderView's clipping rect all the down through transforms instead of using the one from the LayerPaintingInfo, which is adjusted for transforms as you recurse down the tree. TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/957643002 --- .../clipping/clipping-transforms-expected.sky | 14 ++++++++++ .../tests/clipping/clipping-transforms.sky | 28 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 engine/src/flutter/tests/clipping/clipping-transforms-expected.sky create mode 100644 engine/src/flutter/tests/clipping/clipping-transforms.sky diff --git a/engine/src/flutter/tests/clipping/clipping-transforms-expected.sky b/engine/src/flutter/tests/clipping/clipping-transforms-expected.sky new file mode 100644 index 0000000000..4ac45d7af6 --- /dev/null +++ b/engine/src/flutter/tests/clipping/clipping-transforms-expected.sky @@ -0,0 +1,14 @@ + + + diff --git a/engine/src/flutter/tests/clipping/clipping-transforms.sky b/engine/src/flutter/tests/clipping/clipping-transforms.sky new file mode 100644 index 0000000000..762d06a6ba --- /dev/null +++ b/engine/src/flutter/tests/clipping/clipping-transforms.sky @@ -0,0 +1,28 @@ + + + + + + + +