зеркало из https://github.com/mozilla/pjs.git
Bug 575336 part 3. Change the reftest harness to do its initial flush on all subframes, not just the root one. r=roc
This commit is contained in:
Родитель
9f6a6338e2
Коммит
214529b14f
|
@ -851,8 +851,17 @@ function OnDocumentLoad(event)
|
|||
.getInterface(CI.nsIDOMWindowUtils);
|
||||
|
||||
function FlushRendering() {
|
||||
function flushWindow(win) {
|
||||
try {
|
||||
win.document.documentElement.getBoundingClientRect();
|
||||
} catch (e) {}
|
||||
for (var i = 0; i < win.frames.length; ++i) {
|
||||
flushWindow(win.frames[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Flush pending restyles and reflows
|
||||
contentRootElement.getBoundingClientRect();
|
||||
flushWindow(contentRootElement.ownerDocument.defaultView);
|
||||
// Flush out invalidation
|
||||
utils.processUpdates();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче