| Index: third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/selection/selection-within-composited-scroller.html b/third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html
|
| similarity index 61%
|
| copy from third_party/WebKit/LayoutTests/paint/selection/selection-within-composited-scroller.html
|
| copy to third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html
|
| index 343949fc113c0ad63786e544b0fbcf2843c0fcc1..9fe512717746e53ef4851912bc8f1e7cf13857fd 100644
|
| --- a/third_party/WebKit/LayoutTests/paint/selection/selection-within-composited-scroller.html
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html
|
| @@ -1,15 +1,22 @@
|
| <!doctype HTML>
|
| -<div id="scroller" style="width: 200px; height: 200px; overflow: scroll; background: lightgray; will-change: transform">
|
| +<div id="scroller" style="width: 200px; height: 200px; overflow: scroll; background: lightgray local; will-change: transform">
|
| <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 10px"></div>
|
| <div id="target" style="width: 200px; height: 1000px; background: lightblue; margin-bottom: 10px">test</div>
|
| </div>
|
| <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
|
| <script>
|
| -scroller.scrollTop = 450;
|
| function repaintTest() {
|
| var range = document.createRange();
|
| range.selectNode(target);
|
| window.getSelection().addRange(range);
|
| }
|
| -onload = runRepaintAndPixelTest;
|
| -</script>
|
| +onload = function() {
|
| + // Ensure the scroller has painted before we scroll.
|
| + requestAnimationFrame(function() {
|
| + requestAnimationFrame(function() {
|
| + scroller.scrollTop = 450;
|
| + runRepaintTest();
|
| + });
|
| + });
|
| +}
|
| +</script>
|
|
|