Skip to content

Commit 30929e0

Browse files
committedNov 12, 2024
Bug 1930476 - Improve units in nsFrameLoader and related code. r=geckoview-reviewers,jwatt,ohall
Use LayoutDevice units for most these things, since it's what they are: ScreenIntSize(presContext->AppUnitsToDevPixels(size.width), ... Is clearly a lie :) Differential Revision: https://phabricator.services.mozilla.com/D228586
1 parent 28dd1a2 commit 30929e0

36 files changed

+168
-198
lines changed
 

‎dom/base/nsContentUtils.cpp

+7-20
Original file line numberDiff line numberDiff line change
@@ -11295,8 +11295,8 @@ bool nsContentUtils::IsURIInList(nsIURI* aURI, const nsCString& aList) {
1129511295
}
1129611296

1129711297
/* static */
11298-
ScreenIntMargin nsContentUtils::GetWindowSafeAreaInsets(
11299-
nsIScreen* aScreen, const ScreenIntMargin& aSafeAreaInsets,
11298+
LayoutDeviceIntMargin nsContentUtils::GetWindowSafeAreaInsets(
11299+
nsIScreen* aScreen, const LayoutDeviceIntMargin& aSafeAreaInsets,
1130011300
const LayoutDeviceIntRect& aWindowRect) {
1130111301
// This calculates safe area insets of window from screen rectangle, window
1130211302
// rectangle and safe area insets of screen.
@@ -11312,36 +11312,23 @@ ScreenIntMargin nsContentUtils::GetWindowSafeAreaInsets(
1131211312
// | +-------------------------------+ |
1131311313
// +----------------------------------------+
1131411314
//
11315-
ScreenIntMargin windowSafeAreaInsets;
11316-
11315+
LayoutDeviceIntMargin windowSafeAreaInsets;
1131711316
if (windowSafeAreaInsets == aSafeAreaInsets) {
1131811317
// no safe area insets.
1131911318
return windowSafeAreaInsets;
1132011319
}
1132111320

11322-
int32_t screenLeft, screenTop, screenWidth, screenHeight;
11323-
nsresult rv =
11324-
aScreen->GetRect(&screenLeft, &screenTop, &screenWidth, &screenHeight);
11325-
if (NS_WARN_IF(NS_FAILED(rv))) {
11326-
return windowSafeAreaInsets;
11327-
}
11328-
11329-
const ScreenIntRect screenRect(screenLeft, screenTop, screenWidth,
11330-
screenHeight);
11331-
11332-
ScreenIntRect safeAreaRect = screenRect;
11321+
const LayoutDeviceIntRect screenRect = aScreen->GetRect();
11322+
LayoutDeviceIntRect safeAreaRect = screenRect;
1133311323
safeAreaRect.Deflate(aSafeAreaInsets);
1133411324

11335-
ScreenIntRect windowRect = ViewAs<ScreenPixel>(
11336-
aWindowRect, PixelCastJustification::LayoutDeviceIsScreenForTabDims);
11337-
1133811325
// FIXME(bug 1754323): This can trigger because the screen rect is not
1133911326
// orientation-aware.
1134011327
// MOZ_ASSERT(screenRect.Contains(windowRect),
1134111328
// "Screen doesn't contain window rect? Something seems off");
1134211329

1134311330
// window's rect of safe area
11344-
safeAreaRect = safeAreaRect.Intersect(windowRect);
11331+
safeAreaRect = safeAreaRect.Intersect(aWindowRect);
1134511332

1134611333
windowSafeAreaInsets.top = safeAreaRect.y - aWindowRect.y;
1134711334
windowSafeAreaInsets.left = safeAreaRect.x - aWindowRect.x;
@@ -11350,7 +11337,7 @@ ScreenIntMargin nsContentUtils::GetWindowSafeAreaInsets(
1135011337
windowSafeAreaInsets.bottom = aWindowRect.y + aWindowRect.height -
1135111338
(safeAreaRect.y + safeAreaRect.height);
1135211339

11353-
windowSafeAreaInsets.EnsureAtLeast(ScreenIntMargin());
11340+
windowSafeAreaInsets.EnsureAtLeast(LayoutDeviceIntMargin());
1135411341
// This shouldn't be needed, but it wallpapers orientation issues, see bug
1135511342
// 1754323.
1135611343
windowSafeAreaInsets.EnsureAtMost(aSafeAreaInsets);

‎dom/base/nsContentUtils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3423,8 +3423,8 @@ class nsContentUtils {
34233423
* Return safe area insets of window that defines as
34243424
* https://drafts.csswg.org/css-env-1/#safe-area-insets.
34253425
*/
3426-
static mozilla::ScreenIntMargin GetWindowSafeAreaInsets(
3427-
nsIScreen* aScreen, const mozilla::ScreenIntMargin& aSafeareaInsets,
3426+
static mozilla::LayoutDeviceIntMargin GetWindowSafeAreaInsets(
3427+
nsIScreen* aScreen, const mozilla::LayoutDeviceIntMargin& aSafeareaInsets,
34283428
const mozilla::LayoutDeviceIntRect& aWindowRect);
34293429

34303430
struct SubresourceCacheValidationInfo {

‎dom/base/nsFrameLoader.cpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ bool nsFrameLoader::Show(nsSubDocumentFrame* aFrame) {
956956
if (IsRemoteFrame()) {
957957
return ShowRemoteFrame(aFrame);
958958
}
959-
const ScreenIntSize size = aFrame->GetSubdocumentSize();
959+
const LayoutDeviceIntSize size = aFrame->GetSubdocumentSize();
960960
nsresult rv = MaybeCreateDocShell();
961961
if (NS_FAILED(rv)) {
962962
return false;
@@ -1123,7 +1123,8 @@ bool nsFrameLoader::ShowRemoteFrame(nsSubDocumentFrame* aFrame) {
11231123
baseWindow->GetMainWidget(getter_AddRefs(mainWidget));
11241124
nsSizeMode sizeMode =
11251125
mainWidget ? mainWidget->SizeMode() : nsSizeMode_Normal;
1126-
const auto size = hasSize ? aFrame->GetSubdocumentSize() : ScreenIntSize();
1126+
const auto size =
1127+
hasSize ? aFrame->GetSubdocumentSize() : LayoutDeviceIntSize();
11271128
OwnerShowInfo info(size, GetScrollbarPreference(mOwnerContent), sizeMode);
11281129
if (!mRemoteBrowser->Show(info)) {
11291130
return false;
@@ -2364,7 +2365,7 @@ nsresult nsFrameLoader::CheckForRecursiveLoad(nsIURI* aURI) {
23642365
return NS_OK;
23652366
}
23662367

2367-
nsresult nsFrameLoader::GetWindowDimensions(nsIntRect& aRect) {
2368+
nsresult nsFrameLoader::GetWindowDimensions(LayoutDeviceIntRect& aRect) {
23682369
if (!mOwnerContent) {
23692370
return NS_ERROR_FAILURE;
23702371
}
@@ -2394,8 +2395,8 @@ nsresult nsFrameLoader::GetWindowDimensions(nsIntRect& aRect) {
23942395
}
23952396

23962397
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin(do_GetInterface(parentOwner));
2397-
treeOwnerAsWin->GetPosition(&aRect.x, &aRect.y);
2398-
treeOwnerAsWin->GetSize(&aRect.width, &aRect.height);
2398+
aRect.MoveTo(treeOwnerAsWin->GetPosition());
2399+
aRect.SizeTo(treeOwnerAsWin->GetSize());
23992400
return NS_OK;
24002401
}
24012402

@@ -2410,8 +2411,8 @@ nsresult nsFrameLoader::UpdatePositionAndSize(nsSubDocumentFrame* aFrame) {
24102411
if (!mRemoteBrowserShown) {
24112412
ShowRemoteFrame(aFrame);
24122413
}
2413-
nsIntRect dimensions;
2414-
NS_ENSURE_SUCCESS(GetWindowDimensions(dimensions), NS_ERROR_FAILURE);
2414+
LayoutDeviceIntRect dimensions;
2415+
MOZ_TRY(GetWindowDimensions(dimensions));
24152416
mRemoteBrowser->UpdateDimensions(dimensions, size);
24162417
mRemoteBrowserSized = true;
24172418
}

‎dom/base/nsFrameLoader.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class nsFrameLoader final : public nsStubMutationObserver,
390390
nsIContentSecurityPolicy** aCsp);
391391

392392
// Properly retrieves documentSize of any subdocument type.
393-
nsresult GetWindowDimensions(nsIntRect& aRect);
393+
nsresult GetWindowDimensions(mozilla::LayoutDeviceIntRect& aRect);
394394

395395
virtual mozilla::dom::ProcessMessageManager* GetProcessMessageManager()
396396
const override;
@@ -523,7 +523,7 @@ class nsFrameLoader final : public nsStubMutationObserver,
523523
RefPtr<nsDocShell> mDocShell;
524524

525525
// Holds the last known size of the frame.
526-
mozilla::ScreenIntSize mLazySize;
526+
mozilla::LayoutDeviceIntSize mLazySize;
527527

528528
// Actor for collecting session store data from content children. This will be
529529
// cleared and set to null eagerly when taking down the frameloader to break

‎dom/ipc/BrowserBridgeHost.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ bool BrowserBridgeHost::Show(const OwnerShowInfo& aShowInfo) {
6666
return true;
6767
}
6868

69-
void BrowserBridgeHost::UpdateDimensions(const nsIntRect& aRect,
70-
const ScreenIntSize& aSize) {
69+
void BrowserBridgeHost::UpdateDimensions(const LayoutDeviceIntRect& aRect,
70+
const LayoutDeviceIntSize& aSize) {
7171
Unused << mBridge->SendUpdateDimensions(aRect, aSize);
7272
}
7373

‎dom/ipc/BrowserBridgeHost.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace mozilla::dom {
2121
* See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC
2222
* actors.
2323
*/
24-
class BrowserBridgeHost : public RemoteBrowser {
24+
class BrowserBridgeHost final : public RemoteBrowser {
2525
public:
2626
typedef mozilla::layers::LayersId LayersId;
2727

@@ -48,8 +48,8 @@ class BrowserBridgeHost : public RemoteBrowser {
4848
void DestroyComplete() override;
4949

5050
bool Show(const OwnerShowInfo&) override;
51-
void UpdateDimensions(const nsIntRect& aRect,
52-
const ScreenIntSize& aSize) override;
51+
void UpdateDimensions(const LayoutDeviceIntRect& aRect,
52+
const LayoutDeviceIntSize& aSize) override;
5353

5454
void UpdateEffects(EffectsInfo aInfo) override;
5555

‎dom/ipc/BrowserBridgeParent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ IPCResult BrowserBridgeParent::RecvResumeLoad(uint64_t aPendingSwitchID) {
180180
}
181181

182182
IPCResult BrowserBridgeParent::RecvUpdateDimensions(
183-
const nsIntRect& aRect, const ScreenIntSize& aSize) {
183+
const LayoutDeviceIntRect& aRect, const LayoutDeviceIntSize& aSize) {
184184
mBrowserParent->UpdateDimensions(aRect, aSize);
185185
return IPC_OK();
186186
}

‎dom/ipc/BrowserBridgeParent.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class BrowserBridgeParent : public PBrowserBridgeParent {
7676
mozilla::ipc::IPCResult RecvScrollbarPreferenceChanged(ScrollbarPreference);
7777
mozilla::ipc::IPCResult RecvLoadURL(nsDocShellLoadState* aLoadState);
7878
mozilla::ipc::IPCResult RecvResumeLoad(uint64_t aPendingSwitchID);
79-
mozilla::ipc::IPCResult RecvUpdateDimensions(const nsIntRect& aRect,
80-
const ScreenIntSize& aSize);
79+
mozilla::ipc::IPCResult RecvUpdateDimensions(
80+
const LayoutDeviceIntRect& aRect, const LayoutDeviceIntSize& aSize);
8181
mozilla::ipc::IPCResult RecvUpdateEffects(const EffectsInfo& aEffects);
8282
mozilla::ipc::IPCResult RecvUpdateRemotePrintSettings(
8383
const embedding::PrintData&);

‎dom/ipc/BrowserChild.cpp

+34-49
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "mozilla/IMEStateManager.h"
2929
#include "mozilla/LookAndFeel.h"
3030
#include "mozilla/MouseEvents.h"
31+
#include "mozilla/widget/ScreenManager.h"
3132
#include "mozilla/NativeKeyBindingsType.h"
3233
#include "mozilla/NullPrincipal.h"
3334
#include "mozilla/PointerLockManager.h"
@@ -604,7 +605,7 @@ BrowserChild::SetDimensions(DimensionRequest&& aRequest) {
604605
NS_IMETHODIMP
605606
BrowserChild::GetDimensions(DimensionKind aDimensionKind, int32_t* aX,
606607
int32_t* aY, int32_t* aCx, int32_t* aCy) {
607-
ScreenIntRect rect = GetOuterRect();
608+
LayoutDeviceIntRect rect = GetOuterRect();
608609
if (aDimensionKind == DimensionKind::Inner) {
609610
if (aX || aY) {
610611
return NS_ERROR_NOT_IMPLEMENTED;
@@ -1007,7 +1008,7 @@ mozilla::ipc::IPCResult BrowserChild::RecvUpdateRemotePrintSettings(
10071008
}
10081009

10091010
void BrowserChild::DoFakeShow(const ParentShowInfo& aParentShowInfo) {
1010-
OwnerShowInfo ownerInfo{ScreenIntSize(), ScrollbarPreference::Auto,
1011+
OwnerShowInfo ownerInfo{LayoutDeviceIntSize(), ScrollbarPreference::Auto,
10111012
nsSizeMode_Normal};
10121013
RecvShow(aParentShowInfo, ownerInfo);
10131014
mDidFakeShow = true;
@@ -1125,20 +1126,20 @@ mozilla::ipc::IPCResult BrowserChild::RecvUpdateDimensions(
11251126
mHasValidInnerSize = true;
11261127
}
11271128

1128-
ScreenIntSize screenSize = GetInnerSize();
1129-
ScreenIntRect screenRect = GetOuterRect();
1130-
1129+
const LayoutDeviceIntSize innerSize = GetInnerSize();
11311130
// Make sure to set the size on the document viewer first. The
11321131
// MobileViewportManager needs the content viewer size to be updated before
11331132
// the reflow, otherwise it gets a stale size when it computes a new CSS
11341133
// viewport.
11351134
nsCOMPtr<nsIBaseWindow> baseWin = do_QueryInterface(WebNavigation());
1136-
baseWin->SetPositionAndSize(0, 0, screenSize.width, screenSize.height,
1135+
baseWin->SetPositionAndSize(0, 0, innerSize.width, innerSize.height,
11371136
nsIBaseWindow::eRepaint);
11381137

1139-
mPuppetWidget->Resize(screenRect.x + mClientOffset.x + mChromeOffset.x,
1140-
screenRect.y + mClientOffset.y + mChromeOffset.y,
1141-
screenSize.width, screenSize.height, true);
1138+
const LayoutDeviceIntRect outerRect =
1139+
GetOuterRect() + mClientOffset + mChromeOffset;
1140+
1141+
mPuppetWidget->Resize(outerRect.x, outerRect.y, innerSize.width,
1142+
innerSize.height, true);
11421143

11431144
RecvSafeAreaInsetsChanged(mPuppetWidget->GetSafeAreaInsets());
11441145

@@ -3345,23 +3346,22 @@ void BrowserChild::NotifyJankedAnimations(
33453346

33463347
mozilla::ipc::IPCResult BrowserChild::RecvUIResolutionChanged(
33473348
const float& aDpi, const int32_t& aRounding, const double& aScale) {
3348-
ScreenIntSize oldScreenSize = GetInnerSize();
3349+
const LayoutDeviceIntSize oldInnerSize = GetInnerSize();
33493350
if (aDpi > 0) {
33503351
mPuppetWidget->UpdateBackingScaleCache(aDpi, aRounding, aScale);
33513352
}
33523353

3353-
ScreenIntSize screenSize = GetInnerSize();
3354-
if (mHasValidInnerSize && oldScreenSize != screenSize) {
3355-
ScreenIntRect screenRect = GetOuterRect();
3356-
3354+
const LayoutDeviceIntSize innerSize = GetInnerSize();
3355+
if (mHasValidInnerSize && oldInnerSize != innerSize) {
33573356
// See RecvUpdateDimensions for the order of these operations.
33583357
nsCOMPtr<nsIBaseWindow> baseWin = do_QueryInterface(WebNavigation());
3359-
baseWin->SetPositionAndSize(0, 0, screenSize.width, screenSize.height,
3358+
baseWin->SetPositionAndSize(0, 0, innerSize.width, innerSize.height,
33603359
nsIBaseWindow::eRepaint);
33613360

3362-
mPuppetWidget->Resize(screenRect.x + mClientOffset.x + mChromeOffset.x,
3363-
screenRect.y + mClientOffset.y + mChromeOffset.y,
3364-
screenSize.width, screenSize.height, true);
3361+
const LayoutDeviceIntRect outerRect =
3362+
GetOuterRect() + mClientOffset + mChromeOffset;
3363+
mPuppetWidget->Resize(outerRect.x, outerRect.y, innerSize.width,
3364+
innerSize.height, true);
33653365
}
33663366

33673367
nsCOMPtr<Document> document(GetTopLevelDocument());
@@ -3375,32 +3375,23 @@ mozilla::ipc::IPCResult BrowserChild::RecvUIResolutionChanged(
33753375
}
33763376

33773377
mozilla::ipc::IPCResult BrowserChild::RecvSafeAreaInsetsChanged(
3378-
const mozilla::ScreenIntMargin& aSafeAreaInsets) {
3378+
const mozilla::LayoutDeviceIntMargin& aSafeAreaInsets) {
33793379
mPuppetWidget->UpdateSafeAreaInsets(aSafeAreaInsets);
33803380

3381-
nsCOMPtr<nsIScreenManager> screenMgr =
3382-
do_GetService("@mozilla.org/gfx/screenmanager;1");
3383-
ScreenIntMargin currentSafeAreaInsets;
3384-
if (screenMgr) {
3385-
// aSafeAreaInsets is for current screen. But we have to calculate
3386-
// safe insets for content window.
3387-
int32_t x, y, cx, cy;
3388-
GetDimensions(DimensionKind::Outer, &x, &y, &cx, &cy);
3389-
nsCOMPtr<nsIScreen> screen;
3390-
screenMgr->ScreenForRect(x, y, cx, cy, getter_AddRefs(screen));
3391-
3392-
if (screen) {
3393-
LayoutDeviceIntRect windowRect(x + mClientOffset.x + mChromeOffset.x,
3394-
y + mClientOffset.y + mChromeOffset.y, cx,
3395-
cy);
3396-
currentSafeAreaInsets = nsContentUtils::GetWindowSafeAreaInsets(
3397-
screen, aSafeAreaInsets, windowRect);
3398-
}
3381+
LayoutDeviceIntMargin currentSafeAreaInsets;
3382+
// aSafeAreaInsets is for current screen. But we have to calculate safe insets
3383+
// for content window.
3384+
LayoutDeviceIntRect outerRect = GetOuterRect();
3385+
RefPtr<Screen> screen = widget::ScreenManager::GetSingleton().ScreenForRect(
3386+
RoundedToInt(outerRect / mPuppetWidget->GetDesktopToDeviceScale()));
3387+
if (screen) {
3388+
LayoutDeviceIntRect windowRect = outerRect + mClientOffset + mChromeOffset;
3389+
currentSafeAreaInsets = nsContentUtils::GetWindowSafeAreaInsets(
3390+
screen, aSafeAreaInsets, windowRect);
33993391
}
34003392

34013393
if (nsCOMPtr<Document> document = GetTopLevelDocument()) {
3402-
nsPresContext* presContext = document->GetPresContext();
3403-
if (presContext) {
3394+
if (nsPresContext* presContext = document->GetPresContext()) {
34043395
presContext->SetSafeAreaInsets(currentSafeAreaInsets);
34053396
}
34063397
}
@@ -3441,11 +3432,8 @@ bool BrowserChild::DeallocPPaymentRequestChild(PPaymentRequestChild* actor) {
34413432
return true;
34423433
}
34433434

3444-
ScreenIntSize BrowserChild::GetInnerSize() {
3445-
LayoutDeviceIntSize innerSize =
3446-
RoundedToInt(mUnscaledInnerSize * mPuppetWidget->GetDefaultScale());
3447-
return ViewAs<ScreenPixel>(
3448-
innerSize, PixelCastJustification::LayoutDeviceIsScreenForTabDims);
3435+
LayoutDeviceIntSize BrowserChild::GetInnerSize() {
3436+
return RoundedToInt(mUnscaledInnerSize * mPuppetWidget->GetDefaultScale());
34493437
};
34503438

34513439
Maybe<nsRect> BrowserChild::GetVisibleRect() const {
@@ -3489,11 +3477,8 @@ BrowserChild::GetTopLevelViewportVisibleRectInSelfCoords() const {
34893477
return rect;
34903478
}
34913479

3492-
ScreenIntRect BrowserChild::GetOuterRect() {
3493-
LayoutDeviceIntRect outerRect =
3494-
RoundedToInt(mUnscaledOuterRect * mPuppetWidget->GetDefaultScale());
3495-
return ViewAs<ScreenPixel>(
3496-
outerRect, PixelCastJustification::LayoutDeviceIsScreenForTabDims);
3480+
LayoutDeviceIntRect BrowserChild::GetOuterRect() {
3481+
return RoundedToInt(mUnscaledOuterRect * mPuppetWidget->GetDefaultScale());
34973482
}
34983483

34993484
void BrowserChild::PaintWhileInterruptingJS() {

‎dom/ipc/BrowserChild.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
436436
const IPCTabContext& aContext);
437437

438438
mozilla::ipc::IPCResult RecvSafeAreaInsetsChanged(
439-
const mozilla::ScreenIntMargin& aSafeAreaInsets);
439+
const mozilla::LayoutDeviceIntMargin& aSafeAreaInsets);
440440

441441
#ifdef ACCESSIBILITY
442442
PDocAccessibleChild* AllocPDocAccessibleChild(
@@ -568,7 +568,7 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
568568
const mozilla::layers::CompositorOptions& GetCompositorOptions() const;
569569
bool AsyncPanZoomEnabled() const;
570570

571-
ScreenIntSize GetInnerSize();
571+
LayoutDeviceIntSize GetInnerSize();
572572
CSSSize GetUnscaledInnerSize() { return mUnscaledInnerSize; }
573573

574574
Maybe<nsRect> GetVisibleRect() const;
@@ -758,7 +758,7 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
758758

759759
bool HasValidInnerSize();
760760

761-
ScreenIntRect GetOuterRect();
761+
LayoutDeviceIntRect GetOuterRect();
762762

763763
void SetUnscaledInnerSize(const CSSSize& aSize) {
764764
mUnscaledInnerSize = aSize;

‎dom/ipc/BrowserHost.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ bool BrowserHost::Show(const OwnerShowInfo& aShowInfo) {
9090
return mRoot->Show(aShowInfo);
9191
}
9292

93-
void BrowserHost::UpdateDimensions(const nsIntRect& aRect,
94-
const ScreenIntSize& aSize) {
93+
void BrowserHost::UpdateDimensions(const LayoutDeviceIntRect& aRect,
94+
const LayoutDeviceIntSize& aSize) {
9595
mRoot->UpdateDimensions(aRect, aSize);
9696
}
9797

‎dom/ipc/BrowserHost.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class BrowserHost : public RemoteBrowser,
8787
void DestroyComplete() override;
8888

8989
bool Show(const OwnerShowInfo&) override;
90-
void UpdateDimensions(const nsIntRect& aRect,
91-
const ScreenIntSize& aSize) override;
90+
void UpdateDimensions(const LayoutDeviceIntRect& aRect,
91+
const LayoutDeviceIntSize& aSize) override;
9292

9393
void UpdateEffects(EffectsInfo aInfo) override;
9494

0 commit comments

Comments
 (0)
Failed to load comments.