OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe> |
| 3 Test that reparenting a text node across frame boundaries invalidates only the n
ecessary regions |
| 4 in the source and destination frame. Succeeds if there is no invalidation of the
entire root frame. |
| 5 <div id="target"></div> |
| 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 7 <script> |
| 8 |
| 9 var target = document.getElementById("target"); |
| 10 var iframeElement = document.getElementById("iframe"); |
| 11 function repaintTest() { |
| 12 var textNode = iframeElement.contentDocument.getElementById("inner-target"); |
| 13 target.appendChild(textNode); |
| 14 } |
| 15 iframeElement.onload = runRepaintTest(); |
| 16 </script> |
OLD | NEW |