зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1597488 - Fix uses of nsResizerFrame::GetContentToResize in layout/xul/nsResizerFrame.cpp. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58483 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
de5c64c8f9
Коммит
ddb1860966
|
@ -340,9 +340,7 @@ nsIContent* nsResizerFrame::GetContentToResize(mozilla::PresShell* aPresShell,
|
|||
}
|
||||
|
||||
// don't allow resizing windows in content shells
|
||||
nsCOMPtr<nsIDocShellTreeItem> dsti =
|
||||
aPresShell->GetPresContext()->GetDocShell();
|
||||
if (!dsti || dsti->ItemType() != nsIDocShellTreeItem::typeChrome) {
|
||||
if (aPresShell->GetPresContext()->IsChrome()) {
|
||||
// don't allow resizers in content shells, except for the viewport
|
||||
// scrollbar which doesn't have a parent
|
||||
nsIContent* nonNativeAnon =
|
||||
|
|
Загрузка…
Ссылка в новой задаче