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

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

Issue 395463003: Invalidate previous paint rect in RenderObject::paintInvalidationForWholeRenderer() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/remove-block-after-layout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/remove-block-after-layout.html
diff --git a/LayoutTests/fast/repaint/remove-block-after-layout.html b/LayoutTests/fast/repaint/remove-block-after-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..a83b8a6e772766263d8fa77f63c4d28a1d7c98c4
--- /dev/null
+++ b/LayoutTests/fast/repaint/remove-block-after-layout.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ var target = document.getElementById('target');
+ target.style.left = '200px';
+ target.offsetLeft;
+ target.parentNode.removeChild(target);
+}
+onload = runRepaintTest;
+</script>
+<div style="height: 100px">
+Tests invalidation after layouting and then removing a div. The div should disappear without any residue.
+</div>
+<div id="target" style="position: absolute; width: 100px; height: 100px; background-color: red">
+ This div should disappear.
+</div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/remove-block-after-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698