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

Unified Diff: LayoutTests/compositing/layer-creation/compositing-reason-removed.html

Issue 336493004: Removing a RenderLayer's CLM should trigger a repaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/compositing/layer-creation/compositing-reason-removed.html
diff --git a/LayoutTests/compositing/layer-creation/compositing-reason-removed.html b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html
new file mode 100644
index 0000000000000000000000000000000000000000..16abc001f21c9a55e26df4541e1f30165b4eacfe
--- /dev/null
+++ b/LayoutTests/compositing/layer-creation/compositing-reason-removed.html
@@ -0,0 +1,39 @@
+<style>
Ian Vollick 2014/06/12 20:17:09 DOCTYPE
ajuma 2014/06/12 21:07:59 Done.
+ #square {
+ background-color: blue;
+ width: 30px;
+ height: 30px;
+ position: relative;
+ -webkit-backface-visibility: hidden;
+ }
+
+ #testResults {
+ display: none;
+ }
+</style>
+
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ }
+
+ onload = function() {
+ if (!window.internals)
+ return;
+
+ window.internals.startTrackingRepaints(document);
+
+ // Remove the div's only compositing reason. This should trigger a repaint.
+ document.getElementById("square").style.webkitBackfaceVisibility = "visible";
+ document.getElementById("layertree").textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
+ window.internals.stopTrackingRepaints(document);
+
+ document.getElementById("testResults").style.display = "block";
+ }
+</script>
+
+<div id="square"></div>
+
+<div id="testResults">
+ <pre id="layertree"></pre>
+</div>

Powered by Google App Engine
This is Rietveld 408576698