OLD | NEW |
1 <!-- Based on fast/repaint/inline-relative-positioned.html --> | 1 <!-- Based on fast/repaint/inline-relative-positioned.html --> |
2 <script src="resources/paint-invalidation-test.js"></script> | 2 <script src="resources/paint-invalidation-test.js"></script> |
3 <script src="../../../fast/repaint/../../resources/ahem.js"></script> | 3 <script src="../../../fast/repaint/../../resources/ahem.js"></script> |
4 <body onload="runPaintInvalidationTest()"> | 4 <body onload="runPaintInvalidationTest()"> |
5 <span style="position: relative; top: 80px;"> | 5 <span style="position: relative; top: 80px;"> |
6 <div id="target" style="display: inline-block; width: 100px; height: 100px;
overflow: hidden; font-family: Ahem; font-size: 100px; background: red; color: g
reen;">p</div> | 6 <div id="target" style="display: inline-block; width: 100px; height: 100px;
overflow: hidden; font-family: Ahem; font-size: 100px; background: red; color: g
reen;">p</div> |
7 </span> | 7 </span> |
8 <script> | 8 <script> |
9 window.expectedPaintInvalidationObjects = [ | |
10 "InlineTextBox ''", | |
11 "RootInlineBox", | |
12 "LayoutBlockFlow DIV id='target'", | |
13 "LayoutText #text", | |
14 "InlineTextBox 'a'", | |
15 ]; | |
16 function paintInvalidationTest() | 9 function paintInvalidationTest() |
17 { | 10 { |
18 document.getElementById("target").firstChild.data = "a"; | 11 document.getElementById("target").firstChild.data = "a"; |
19 } | 12 } |
20 </script> | 13 </script> |
OLD | NEW |