Bug 1358809 - Remove unnecessary layout flush for outerWidth and outerHeight. r?tnikkel
MozReview-Commit-ID: KxHerjjGF9Z
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -5746,21 +5746,16 @@ nsGlobalWindow::GetOuterSize(CallerType
}
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin = GetTreeOwnerWindow();
if (!treeOwnerAsWin) {
aError.Throw(NS_ERROR_FAILURE);
return nsIntSize(0, 0);
}
- nsGlobalWindow* rootWindow = nsGlobalWindow::Cast(GetPrivateRoot());
- if (rootWindow) {
- rootWindow->FlushPendingNotifications(FlushType::Layout);
- }
-
nsIntSize sizeDevPixels;
aError = treeOwnerAsWin->GetSize(&sizeDevPixels.width, &sizeDevPixels.height);
if (aError.Failed()) {
return nsIntSize();
}
return DevToCSSIntPixels(sizeDevPixels);
}