Bug 1541253 - Make PresShell::IsVisible const. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D26251

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Hiroyuki Ikezoe 2019-05-10 11:15:30 +00:00
parent 1a57aab68e
commit 88e1c00d24
2 changed files with 2 additions and 2 deletions

View File

@ -8811,7 +8811,7 @@ void PresShell::DidPaintWindow() {
}
}
bool PresShell::IsVisible() {
bool PresShell::IsVisible() const {
if (!mIsActive || !mViewManager) return false;
nsView* view = mViewManager->GetRootView();

View File

@ -1043,7 +1043,7 @@ class PresShell final : public nsStubDocumentObserver,
*/
MOZ_CAN_RUN_SCRIPT void DidPaintWindow();
bool IsVisible();
bool IsVisible() const;
MOZ_CAN_RUN_SCRIPT
void DispatchSynthMouseMove(WidgetGUIEvent* aEvent);