diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /view/nsView.cpp | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'view/nsView.cpp')
-rw-r--r-- | view/nsView.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/view/nsView.cpp b/view/nsView.cpp index aebc236883..41988da30c 100644 --- a/view/nsView.cpp +++ b/view/nsView.cpp @@ -902,28 +902,6 @@ bool nsView::IsRoot() const { return mViewManager->GetRootView() == this; } -nsRect nsView::GetBoundsInParentUnits() const { - nsView* parent = GetParent(); - nsViewManager* VM = GetViewManager(); - if (this != VM->GetRootView() || !parent) { - return mDimBounds; - } - int32_t ourAPD = VM->AppUnitsPerDevPixel(); - int32_t parentAPD = parent->GetViewManager()->AppUnitsPerDevPixel(); - return mDimBounds.ScaleToOtherAppUnitsRoundOut(ourAPD, parentAPD); -} - -nsPoint nsView::ConvertFromParentCoords(nsPoint aPt) const { - const nsView* parent = GetParent(); - if (parent) { - aPt = aPt.ScaleToOtherAppUnits( - parent->GetViewManager()->AppUnitsPerDevPixel(), - GetViewManager()->AppUnitsPerDevPixel()); - } - aPt -= GetPosition(); - return aPt; -} - static bool IsPopupWidget(nsIWidget* aWidget) { return aWidget->GetWindowType() == WindowType::Popup; } @@ -1103,8 +1081,7 @@ void nsView::DidCompositeWindow(mozilla::layers::TransactionId aTransactionId, } void nsView::RequestRepaint() { - PresShell* presShell = mViewManager->GetPresShell(); - if (presShell) { + if (PresShell* presShell = mViewManager->GetPresShell()) { presShell->ScheduleViewManagerFlush(); } } |