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

Side by Side Diff: LayoutTests/compositing/overflow/updating-scrolling-content.html

Issue 12254005: Merge 141769 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <!-- 3 <!--
4 This test checks that the contents of accelerated scrolling layers are properly 4 This test checks that the contents of accelerated scrolling layers are properly
5 updated also outside the current overflow clip. See 5 updated also outside the current overflow clip. See
6 https://bugs.webkit.org/show_bug.cgi?id=100524. 6 https://bugs.webkit.org/show_bug.cgi?id=100524.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
11 <style type="text/css"> 11 <style type="text/css">
12 #scroller { 12 #scroller {
13 overflow: scroll; 13 overflow: scroll;
14 -webkit-overflow-scrolling: touch; 14 -webkit-overflow-scrolling: touch;
15 width: 200px; 15 width: 200px;
16 height: 200px; 16 height: 200px;
17 } 17 }
18 18
19 #indicator { 19 #indicator {
20 background: red; 20 background: red;
21 height: 200px; 21 height: 200px;
22 } 22 }
23 23
24 #content { 24 #content {
25 height: 1000px; 25 height: 1000px;
26 } 26 }
27 </style> 27 </style>
28 <script type="text/javascript"> 28 <script type="text/javascript">
29 if (window.internals)
30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn abled(true);
31
29 window.addEventListener('load', function() { 32 window.addEventListener('load', function() {
30 if (!window.testRunner || !window.internals) { 33 if (!window.testRunner || !window.internals) {
31 alert('This test requires testRunner to run!'); 34 alert('This test requires testRunner to run!');
32 return; 35 return;
33 } 36 }
34 testRunner.dumpAsText(false); 37 testRunner.dumpAsText(false);
35 38
36 var scroller = document.getElementById('scroller'); 39 var scroller = document.getElementById('scroller');
37 var indicator = document.getElementById('indicator'); 40 var indicator = document.getElementById('indicator');
38 41
(...skipping 16 matching lines...) Expand all
55 </script> 58 </script>
56 </head> 59 </head>
57 <body> 60 <body>
58 <div id="scroller"> 61 <div id="scroller">
59 <div id="indicator"></div> 62 <div id="indicator"></div>
60 <div id="content"></div> 63 <div id="content"></div>
61 </div> 64 </div>
62 <pre id="layerTree">This text will be replaced with the layer tree.</pre> 65 <pre id="layerTree">This text will be replaced with the layer tree.</pre>
63 </body> 66 </body>
64 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698