diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /view/nsView.cpp | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 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(); } } |