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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/should-not-clip-composited-viewport-scrolling-layer.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on compositing/repaint/should-not-clip-composited-viewport-scrolling- layer.html --> 1 <!-- Based on compositing/repaint/should-not-clip-composited-viewport-scrolling- layer.html -->
2 <!DOCTYPE HTML> 2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 if (window.internals) 5 if (window.internals)
6 internals.settings.setPreferCompositingToLCDTextEnabled(true); 6 internals.settings.setPreferCompositingToLCDTextEnabled(true);
7 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow DIV id='content'",
9 ];
10 function paintInvalidationTest() { 7 function paintInvalidationTest() {
11 document.getElementById('content').style.backgroundColor = 'green'; 8 document.getElementById('content').style.backgroundColor = 'green';
12 window.scrollTo(2000, 2000); 9 window.scrollTo(2000, 2000);
13 } 10 }
14 window.onload = runPaintInvalidationTest; 11 window.onload = runPaintInvalidationTest;
15 </script> 12 </script>
16 <style> 13 <style>
17 #content { 14 #content {
18 width: 5000px; 15 width: 5000px;
19 height: 5000px; 16 height: 5000px;
20 background-color: red; 17 background-color: red;
21 } 18 }
22 </style> 19 </style>
23 <div id="content"> 20 <div id="content">
24 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped , 21 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped ,
25 and there is no red when the scrolling container is scrolled.<br> 22 and there is no red when the scrolling container is scrolled.<br>
26 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text 23 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
27 on non-high-dpi machines to enable composited scrolling. 24 on non-high-dpi machines to enable composited scrolling.
28 </div> 25 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698