blob: b94010ed1328793ad50cbdc50130d1c9f0f9c648 [file] [log] [blame]
function runRepaintTest()
{
if (window.testRunner && window.internals) {
window.testRunner.dumpAsText(false);
if (document.body)
document.body.offsetTop;
else if (document.documentElement)
document.documentElement.offsetTop;
window.internals.startTrackingRepaints();
repaintTest();
// force a style recalc.
var dummy = document.body.offsetTop;
var repaintRects = window.internals.repaintRectsAsText();
window.internals.stopTrackingRepaints();
var pre = document.createElement('pre');
document.body.appendChild(pre);
pre.innerHTML = repaintRects;
} else {
setTimeout(repaintTest, 100);
}
}