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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <style>
Ian Vollick 2014/06/12 20:17:09 DOCTYPE
ajuma 2014/06/12 21:07:59 Done.
2 #square {
3 background-color: blue;
4 width: 30px;
5 height: 30px;
6 position: relative;
7 -webkit-backface-visibility: hidden;
8 }
9
10 #testResults {
11 display: none;
12 }
13 </style>
14
15 <script>
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 }
19
20 onload = function() {
21 if (!window.internals)
22 return;
23
24 window.internals.startTrackingRepaints(document);
25
26 // Remove the div's only compositing reason. This should trigger a repaint.
27 document.getElementById("square").style.webkitBackfaceVisibility = "visible" ;
28 document.getElementById("layertree").textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
29 window.internals.stopTrackingRepaints(document);
30
31 document.getElementById("testResults").style.display = "block";
32 }
33 </script>
34
35 <div id="square"></div>
36
37 <div id="testResults">
38 <pre id="layertree"></pre>
39 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698