зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 7da82c2eea17 (bug 1597488) for chrome failures at layout/xul/test/test_resizer.xhtml on a CLOSED TREE
This commit is contained in:
Родитель
fb45407510
Коммит
bb687ca476
|
@ -340,7 +340,9 @@ nsIContent* nsResizerFrame::GetContentToResize(mozilla::PresShell* aPresShell,
|
|||
}
|
||||
|
||||
// don't allow resizing windows in content shells
|
||||
if (aPresShell->GetPresContext()->IsChrome()) {
|
||||
nsCOMPtr<nsIDocShellTreeItem> dsti =
|
||||
aPresShell->GetPresContext()->GetDocShell();
|
||||
if (!dsti || dsti->ItemType() != nsIDocShellTreeItem::typeChrome) {
|
||||
// don't allow resizers in content shells, except for the viewport
|
||||
// scrollbar which doesn't have a parent
|
||||
nsIContent* nonNativeAnon =
|
||||
|
|
Загрузка…
Ссылка в новой задаче