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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/cached-cell-remove.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-cell-remove.html --> 1 <!-- Based on fast/table/border-collapsing/cached-cell-remove.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 remove cell, expect that cache is invalidated and paint produces expecte d image. 4 Here we remove cell, expect that cache is invalidated and paint produces expecte d 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 id='bar'",
14 "LayoutTableCell TD",
15 "LayoutTableCell TD",
16 "LayoutTable TABLE",
17 "LayoutTableCell TD",
18 "LayoutTableCell TD",
19 "LayoutTableSection TBODY",
20 "LayoutTableCell TD",
21 "LayoutTableCell TD",
22 ];
23 function paintInvalidationTest() { 12 function paintInvalidationTest() {
24 barCell = document.getElementById("bar"); 13 barCell = document.getElementById("bar");
25 document.getElementById("row").removeChild(barCell); 14 document.getElementById("row").removeChild(barCell);
26 } 15 }
27 </script> 16 </script>
28 </head> 17 </head>
29 <body onload="runPaintInvalidationTest()"> 18 <body onload="runPaintInvalidationTest()">
30 <table style="border-collapse:collapse; border:2px solid blue"> 19 <table style="border-collapse:collapse; border:2px solid blue">
31 <tr id="row"> 20 <tr id="row">
32 <td style="border:4px solid lime"/> 21 <td style="border:4px solid lime"/>
33 <td style="border-left:6px solid yellow" id="bar"/> 22 <td style="border-left:6px solid yellow" id="bar"/>
34 <td/> 23 <td/>
35 </tr> 24 </tr>
36 </table> 25 </table>
37 </body> 26 </body>
38 </html> 27 </html>
39 28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698