Bug 1419144 - Part 19: Move IsRootOuterWindow to nsPIDOMWindowOuter, r=smaug

MozReview-Commit-ID: Cgh1Cbb60Zk
This commit is contained in:
Nika Layzell 2017-11-20 12:30:15 -05:00
Родитель b1a42230f1
Коммит 98a780f55d
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -152,12 +152,6 @@ public:
virtual nsPIDOMWindowOuter* GetScriptableParent() = 0;
virtual already_AddRefed<nsPIWindowRoot> GetTopWindowRoot() = 0;
bool IsRootOuterWindow()
{
MOZ_ASSERT(IsOuterWindow());
return mIsRootOuterWindow;
}
/**
* Behavies identically to GetScriptableParent extept that it returns null
* if GetScriptableParent would return this window.
@ -993,6 +987,12 @@ public:
return GetCurrentInnerWindow();
}
bool IsRootOuterWindow()
{
MOZ_ASSERT(IsOuterWindow());
return mIsRootOuterWindow;
}
/**
* Set initial keyboard indicator state for accelerators and focus rings.
*/