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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html

Issue 2229643002: Don't invalidate paint on background image change if it's obscured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@BackgroundObscured
Patch Set: - Created 4 years, 4 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
Index: third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html b/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html
index c3157a55f2c8d1fd016db8c00019bbc171110295..8c785ad89e98c6cfc2f14ce408636f80d5d3983d 100644
--- a/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html
+++ b/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html
@@ -51,7 +51,7 @@
window.testIsAsync = true;
function repaintTest()
{
- runAfterLayoutAndPaint(finishRepaintTest);
+ setTimeout(finishRepaintTest, 300);
Stephen Chennney 2016/08/09 14:22:31 Timeouts should be avoided if at all possible. The
Xianzhu 2016/08/09 18:51:48 Unfortunately there seems no other ways for such t
}
function start() {
@@ -59,7 +59,9 @@
return;
var img = new Image();
- img.onload = runRepaintTest;
+ img.onload = function() {
+ runAfterLayoutAndPaint(runRepaintTest);
+ };
img.src = "resources/animated.gif";
}
</script>

Powered by Google App Engine
This is Rietveld 408576698