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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/scrolling-without-painting-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 2
3 <!-- 3 <!--
4 This test checks that accelerated scrolling layers can be scrolled without 4 This test checks that accelerated scrolling layers can be scrolled without
5 repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087. 5 repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087.
6 --> 6 -->
7 7
8 <html> 8 <html>
9 <head> 9 <head>
10 <style type="text/css"> 10 <style type="text/css">
11 #scroller { 11 #scroller {
12 overflow: scroll; 12 overflow: scroll;
13 -webkit-overflow-scrolling: touch; 13 -webkit-overflow-scrolling: touch;
14 width: 200px; 14 width: 200px;
15 height: 200px; 15 height: 200px;
16 border: solid thin blue; 16 border: solid thin blue;
17 } 17 }
18 18
19 #content { 19 #content {
20 height: 1000px; 20 height: 1000px;
21 margin-top: 25px; 21 margin-top: 25px;
22 } 22 }
23 </style> 23 </style>
24 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
25 <script type="text/javascript"> 24 <script type="text/javascript">
26 if (window.internals) 25 onload = function() {
27 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
28
29 function repaintTest() {
30 // Scroll down. This should not cause any more repaints to the
31 // scrolling contents.
32 document.getElementById('scroller').scrollTop = 25; 26 document.getElementById('scroller').scrollTop = 25;
33 } 27 };
34
35 runRepaintTest();
36 </script> 28 </script>
37 </head> 29 </head>
38 <body> 30 <body>
39 <div id="scroller"> 31 <div id="scroller">
40 <div id="content"></div> 32 <div id="content"></div>
41 </div> 33 </div>
42 </body> 34 </body>
43 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698