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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/cached-change-col-border-width.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 fast/table/border-collapsing/cached-change-col-border-width.html - -> 1 <!-- Based on fast/table/border-collapsing/cached-change-col-border-width.html - ->
2 <!-- 2 <!--
3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed. 3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
4 Here we change col border width, expect that cache is invalidated and paint prod uces expected image. 4 Here we change col border width, expect that cache is invalidated and paint prod uces expected image.
5 --> 5 -->
6 <html> 6 <html>
7 <head> 7 <head>
8 <title></title> 8 <title></title>
9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou rces/cached.css"> 9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou rces/cached.css">
10 <script src="resources/paint-invalidation-test.js"></script> 10 <script src="resources/paint-invalidation-test.js"></script>
11 <script type="text/javascript"> 11 <script type="text/javascript">
12 window.expectedPaintInvalidationObjects = [
13 "LayoutTableCell TD",
14 "LayoutTableCell TD",
15 "LayoutTableCell TD",
16 "LayoutTableCell TD",
17 "LayoutTable TABLE",
18 "LayoutTableCell TD",
19 "LayoutTableCell TD",
20 "LayoutTableCol COL id='col'",
21 "LayoutTableSection TBODY",
22 "LayoutTableRow TR",
23 "LayoutTableCell TD",
24 "LayoutTableCell TD",
25 "LayoutTableRow TR",
26 "LayoutTableCell TD",
27 "LayoutTableCell TD",
28 ];
29 function paintInvalidationTest() { 12 function paintInvalidationTest() {
30 document.getElementById("col").style.borderWidth = "4px"; 13 document.getElementById("col").style.borderWidth = "4px";
31 } 14 }
32 </script> 15 </script>
33 </head> 16 </head>
34 <body onload="runPaintInvalidationTest()"> 17 <body onload="runPaintInvalidationTest()">
35 <table style="border-collapse:collapse; border:1px solid blue"> 18 <table style="border-collapse:collapse; border:1px solid blue">
36 <colgroup> 19 <colgroup>
37 <col style="border:1px solid yellow" id="col"> 20 <col style="border:1px solid yellow" id="col">
38 <col> 21 <col>
39 </colgroup> 22 </colgroup>
40 <tbody> 23 <tbody>
41 <tr> 24 <tr>
42 <td style="border:2px solid lime"/> 25 <td style="border:2px solid lime"/>
43 <td/> 26 <td/>
44 </tr> 27 </tr>
45 <tr> 28 <tr>
46 <td/> 29 <td/>
47 <td/> 30 <td/>
48 </tr> 31 </tr>
49 </tbody> 32 </tbody>
50 </table> 33 </table>
51 </body> 34 </body>
52 </html> 35 </html>
53 36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698