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

Unified Diff: LayoutTests/fast/repaint/remove-inline-layer-after-layout.html

Issue 395463003: Invalidate previous paint rect in RenderObject::paintInvalidationForWholeRenderer() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Invalidate both old and new paint rects Created 6 years, 5 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: LayoutTests/fast/repaint/remove-inline-layer-after-layout.html
diff --git a/LayoutTests/fast/repaint/remove-inline-layer-after-layout.html b/LayoutTests/fast/repaint/remove-inline-layer-after-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..938d082d90de915f895989ab58d54d38435dd9a9
--- /dev/null
+++ b/LayoutTests/fast/repaint/remove-inline-layer-after-layout.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ var target = document.getElementById('target');
+ target.style.margin = '100px';
+ target.parentNode.offsetHeight;
+ target.parentNode.removeChild(target);
+}
+runRepaintTest();
+</script>
+<div style="display: inline-block; width: 100px; height: 100px; background-color: green"></div>
+<span id="target" style="opacity: 0.8">
+ This span should disappear.
+</span>
+<div style="display: inline-block; width: 100px; height: 100px; background-color: green"></div>

Powered by Google App Engine
This is Rietveld 408576698