| OLD | NEW | 
 |   1 <!-- Based on fast/repaint/border-outline-0.html --> | 
|   1 <!DOCTYPE html> |   2 <!DOCTYPE html> | 
|   2  |   3  | 
|   3 <style> |   4 <style> | 
|   4 #border-image, |   5 #border-image, | 
|   5 #border, |   6 #border, | 
|   6 #outline { |   7 #outline { | 
|   7     height: 100px; |   8     height: 100px; | 
|   8     width: 100px; |   9     width: 100px; | 
|   9 } |  10 } | 
|  10  |  11  | 
|  11 td { |  12 td { | 
|  12     height: 50px; |  13     height: 50px; | 
|  13     width: 50px; |  14     width: 50px; | 
|  14     border-style: hidden; |  15     border-style: hidden; | 
|  15 } |  16 } | 
|  16  |  17  | 
|  17 #border-image { |  18 #border-image { | 
|  18     border-image: url(_example.png) 100% 100 100 round; |  19     border-image: url(../../../fast/repaint/_example.png) 100% 100 100 round; | 
|  19     border-style: none; |  20     border-style: none; | 
|  20     border-width: 50px; |  21     border-width: 50px; | 
|  21     position: absolute; |  22     position: absolute; | 
|  22     top: 10px; |  23     top: 10px; | 
|  23     left: 10px; |  24     left: 10px; | 
|  24 } |  25 } | 
|  25 </style> |  26 </style> | 
|  26  |  27  | 
|  27 <script src="resources/text-based-repaint.js"></script> |  28 <script src="resources/paint-invalidation-test.js"></script> | 
|  28 <script> |  29 <script> | 
|  29 if (window.testRunner) |  30 window.expectedPaintInvalidationObjects = [ | 
|  30     testRunner.dumpAsText(); |  31     "LayoutBlockFlow (positioned) DIV id='border-image'", | 
|  31  |  32 ]; | 
|  32 function repaintTest() { |  33 function paintInvalidationTest() { | 
|  33     var border = document.getElementById("border"); |  34     var border = document.getElementById("border"); | 
|  34     border.style.border = "0"; |  35     border.style.border = "0"; | 
|  35  |  36  | 
|  36     var outline = document.getElementById("outline"); |  37     var outline = document.getElementById("outline"); | 
|  37     outline.style.outline = "0"; |  38     outline.style.outline = "0"; | 
|  38  |  39  | 
|  39     var outline = document.getElementById("cell"); |  40     var outline = document.getElementById("cell"); | 
|  40     outline.style.borderWidth = "0"; |  41     outline.style.borderWidth = "0"; | 
|  41  |  42  | 
|  42     var borderImage = document.getElementById("border-image"); |  43     var borderImage = document.getElementById("border-image"); | 
|  43     borderImage.style.borderWidth = "0"; |  44     borderImage.style.borderWidth = "0"; | 
|  44 } |  45 } | 
|  45 onload = runRepaintTest; |  46 onload = runPaintInvalidationTest; | 
|  46 </script> |  47 </script> | 
|  47  |  48  | 
|  48 <p>Tests that setting an outline or a border of 0 on an element without a border
     or outline doesn't repaint.</p> |  49 <p>Tests that setting an outline or a border of 0 on an element without a border
     or outline doesn't repaint.</p> | 
|  49  |  50  | 
|  50 <div id="border"></div> |  51 <div id="border"></div> | 
|  51 <div id="outline"></div> |  52 <div id="outline"></div> | 
|  52 <div id="border-image"></div> |  53 <div id="border-image"></div> | 
|  53  |  54  | 
|  54 <table> |  55 <table> | 
|  55     <tr> |  56     <tr> | 
|  56         <td id="cell"></td> |  57         <td id="cell"></td> | 
|  57         <td></td> |  58         <td></td> | 
|  58     </tr> |  59     </tr> | 
|  59 </table> |  60 </table> | 
| OLD | NEW |