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

Side by Side Diff: LayoutTests/compositing/overflow/clear-scroll-parent.html

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .container { 5 .container {
6 height: 200px; 6 height: 200px;
7 width: 300px; 7 width: 300px;
8 border: 4px solid black; 8 border: 4px solid black;
9 overflow-y: scroll; 9 overflow-y: scroll;
10 resize: both; 10 resize: both;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 testRunner.dumpAsText(); 46 testRunner.dumpAsText();
47 47
48 if (window.internals) { 48 if (window.internals) {
49 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); 49 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
50 } 50 }
51 51
52 function runTest() { 52 function runTest() {
53 var pre = document.createElement('pre'); 53 var pre = document.createElement('pre');
54 if (!window.internals) { 54 if (!window.internals) {
55 var description = "This test ensures that amongst the graphics " 55 var description = "This test ensures that amongst the graphics "
56 + "layers corresponding to a single RenderLayer, only one may " 56 + "layers corresponding to a single Layer, only one may "
57 + "have a scroll parent."; 57 + "have a scroll parent.";
58 pre.innerHTML = description; 58 pre.innerHTML = description;
59 } else { 59 } else {
60 document.body.offsetTop; 60 document.body.offsetTop;
61 var clip = document.getElementById('clip'); 61 var clip = document.getElementById('clip');
62 clip.className = "clip"; 62 clip.className = "clip";
63 document.body.offsetTop; 63 document.body.offsetTop;
64 pre.innerHTML = internals.layerTreeAsText(document, 64 pre.innerHTML = internals.layerTreeAsText(document,
65 internals.LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS); 65 internals.LAYER_TREE_INCLUDES_CLIP_AND_SCROLL_PARENTS);
66 } 66 }
67 document.body.appendChild(pre); 67 document.body.appendChild(pre);
68 } 68 }
69 window.onload = runTest; 69 window.onload = runTest;
70 </script> 70 </script>
71 </head> 71 </head>
72 <body> 72 <body>
73 <div class="container"> 73 <div class="container">
74 <div id="fixed"></div> 74 <div id="fixed"></div>
75 <div id='clip'> 75 <div id='clip'>
76 <div class="box red"></div> 76 <div class="box red"></div>
77 </div> 77 </div>
78 <div class="box"></div> 78 <div class="box"></div>
79 <div class="box"></div> 79 <div class="box"></div>
80 <div class="box"></div> 80 <div class="box"></div>
81 <div class="box"></div> 81 <div class="box"></div>
82 </div> 82 </div>
83 </body> 83 </body>
84 </html> 84 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698