Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 1d97ba6

Browse files
committed
Bug 1937785 - Make PresShell::GetMobileViewportManager return a raw pointer. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D234261
1 parent 58c9f33 commit 1d97ba6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layout/base/PresShell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11346,7 +11346,7 @@ void PresShell::SetIsActive(bool aIsActive) {
1134611346
}
1134711347
}
1134811348

11349-
RefPtr<MobileViewportManager> PresShell::GetMobileViewportManager() const {
11349+
MobileViewportManager* PresShell::GetMobileViewportManager() const {
1135011350
return mMobileViewportManager;
1135111351
}
1135211352

layout/base/PresShell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class PresShell final : public nsStubDocumentObserver,
418418
* viewport. Will return null in situations where we don't have a mobile
419419
* viewport, and for documents that are not the root content document.
420420
*/
421-
RefPtr<MobileViewportManager> GetMobileViewportManager() const;
421+
MobileViewportManager* GetMobileViewportManager() const;
422422

423423
/**
424424
* Called when document load completes.

0 commit comments

Comments
 (0)