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

Side by Side Diff: LayoutTests/fast/repaint/logical-height-change-hardware-accelerated-siblings-overrepaint.html

Issue 171843005: Avoid repainting non needs-self-layout container (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve the description of the test. Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/logical-height-change-hardware-accelerated-siblings-overrepaint-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .view,
6 .view > * {
7 -webkit-transform: translateZ(0);
8 }
9
10 .message {
11 display: inline-block;
12 background-color: blue;
13 height: 100px;
14 width: 100px;
15 }
16
17 #middle {
18 background-color: green;
19 margin: 4px;
20 }
21
22 </style>
23 <script>
24 function runRepaintTest()
25 {
26 if (window.testRunner)
27 testRunner.dumpAsText();
28
29 middle.offsetTop;
30 if (window.internals)
31 window.internals.startTrackingRepaints(document);
32
33 middle.style.height = "300px";
34 middle.offsetTop;
35
36 if (window.internals) {
37 var layers = window.internals.layerTreeAsText(document, internals.LAYER_ TREE_INCLUDES_REPAINT_RECTS);
38 document.getElementById('dump').appendChild(document.createTextNode(laye rs));
39
40 window.internals.stopTrackingRepaints(document);
41 }
42 }
43
44 window.addEventListener("load", runRepaintTest, false);
45 </script>
46 </head>
47 <body>
48 <p>
49 This test checks which layers are repainted if #middle changes logical h eight.
50 Ideally only #middle's layer should be repainted as none of the other la yer changed.
51 </p>
52 <div class="view">
53 <div class='message'></div>
54 <div class='message'></div>
55 <div class='message'></div>
56 <div class='message'></div>
57 <div class='message'></div>
58 <div class='message'></div>
59 <div class='message'></div>
60 <div id="middle"></div>
61 <div class='message'></div>
62 <div class='message'></div>
63 <div class='message'></div>
64 <div class='message'></div>
65 <div class='message'></div>
66 <div class='message'></div>
67 <div class='message'></div>
68 </div>
69
70 <div id="dump" style="white-space: pre"></div>
71 </body>
72 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/logical-height-change-hardware-accelerated-siblings-overrepaint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698