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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/layer-hide-when-needs-layout.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 <!-- Based on fast/repaint/layer-hide-when-needs-layout.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title> 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
5 <script type="text/javascript"> 6 <script type="text/javascript">
6 function repaintTest() 7 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow (positioned) DIV id='target'",
9 ];
10 function paintInvalidationTest()
7 { 11 {
8 var div = document.getElementById("target"); 12 var div = document.getElementById("target");
9 div.style.visibility = 'hidden'; 13 div.style.visibility = 'hidden';
10 // Now make this a layout hint to avoid the repaint done in setStyle (). 14 // Now make this a layout hint to avoid the repaint done in setStyle ().
11 div.style.width = '50px'; 15 div.style.width = '50px';
12 } 16 }
13 </script> 17 </script>
14 </head> 18 </head>
15 <body onload="runRepaintTest()"> 19 <body onload="runPaintInvalidationTest()">
16 <div style="position: relative;"> 20 <div style="position: relative;">
17 <div style="background: green; width: 100px; height: 100px;"> 21 <div style="background: green; width: 100px; height: 100px;">
18 </div> 22 </div>
19 <div id="target" style="position: absolute; top: 0; width: 100px; height : 100px; background: red;"> 23 <div id="target" style="position: absolute; top: 0; width: 100px; height : 100px; background: red;">
20 </div> 24 </div>
21 </div> 25 </div>
22 </body> 26 </body>
23 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698