Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller.html

Issue 2310203002: Invalidate scrolling contents layer background when child invalidated. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/selection-within-opaque-composited-scroller-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698