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

Unified Diff: third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.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: Rebase 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/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
diff --git a/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html b/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
index 3f897dabba9bb5e16494c2bc52859108ee05e3d1..00c6c0a091b46d8d782148ca817c3b719532ae17 100644
--- a/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
+++ b/third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
@@ -1,6 +1,7 @@
<html>
<head>
<script src="../../../resources/ahem.js"></script>
+<script src="../../../resources/run-after-layout-and-paint.js"></script>
<style>
.container {
font: 50px/1 Ahem, sans-serif;
@@ -16,10 +17,12 @@
</style>
<script>
window.onload = function() {
+ runAfterLayoutAndPaint(function() {
var container = document.querySelector('.container');
var shape = document.createElement('div');
shape.className = 'shape-outside';
container.insertBefore(shape, container.firstChild);
+ }, true);
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698