summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/paint-invalidation-with-reparent-across-frame-boundaries.html
blob: 05f5aae908704a9281008da3cb18c1e8831a96a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe>
Test that reparenting a text node across frame boundaries invalidates only the necessary regions
in the source and destination frame. Succeeds if there is no invalidation of the entire root frame.
<div id="target"></div>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
    var target = document.getElementById("target");
    var iframeElement = document.getElementById("iframe");
    var textNode = iframeElement.contentDocument.getElementById("inner-target");
    target.appendChild(textNode);
}
onload = runRepaintTest;
</script>