Skip to content

Commit 737c69f

Browse files
committedApr 25, 2024
Bug 1893357 - Drop |aRepaintExposedAreaOnly| argument from nsViewManager::ResizeView(). r=tnikkel
It hasn't been used since bug 873944 in https://hg.mozilla.org/mozilla-central/rev/b75f6184008a . Differential Revision: https://phabricator.services.mozilla.com/D208575
1 parent efb76cb commit 737c69f

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed
 

‎layout/generic/nsContainerFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ void nsContainerFrame::SyncFrameViewAfterReflow(nsPresContext* aPresContext,
780780
if (!(aFlags & ReflowChildFlags::NoSizeView)) {
781781
nsViewManager* vm = aView->GetViewManager();
782782

783-
vm->ResizeView(aView, aInkOverflowArea, true);
783+
vm->ResizeView(aView, aInkOverflowArea);
784784
}
785785
}
786786

‎layout/generic/nsIFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8010,7 +8010,7 @@ bool nsIFrame::UpdateOverflow() {
80108010
if (nsView* view = GetView()) {
80118011
// Make sure the frame's view is properly sized.
80128012
nsViewManager* vm = view->GetViewManager();
8013-
vm->ResizeView(view, overflowAreas.InkOverflow(), true);
8013+
vm->ResizeView(view, overflowAreas.InkOverflow());
80148014
}
80158015

80168016
return true;

‎layout/generic/nsSubDocumentFrame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ void nsSubDocumentFrame::Reflow(nsPresContext* aPresContext,
705705

706706
nsViewManager* vm = mInnerView->GetViewManager();
707707
vm->MoveViewTo(mInnerView, destRect.x, destRect.y);
708-
vm->ResizeView(mInnerView, nsRect(nsPoint(0, 0), destRect.Size()), true);
708+
vm->ResizeView(mInnerView, nsRect(nsPoint(0, 0), destRect.Size()));
709709
}
710710

711711
aDesiredSize.SetOverflowAreasToDesiredBounds();

‎view/nsViewManager.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,7 @@ void nsViewManager::MoveViewTo(nsView* aView, nscoord aX, nscoord aY) {
789789
aView->SetPosition(aX, aY);
790790
}
791791

792-
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect,
793-
bool aRepaintExposedAreaOnly) {
792+
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect) {
794793
NS_ASSERTION(aView->GetViewManager() == this, "wrong view manager");
795794

796795
nsRect oldDimensions = aView->GetDimensions();

‎view/nsViewManager.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,8 @@ class nsViewManager final {
180180
* The view manager generates the appropriate dirty regions.
181181
* @param aView view to move
182182
* @param the new bounds relative to the current position
183-
* @param RepaintExposedAreaOnly
184-
* if true Repaint only the expanded or contracted region,
185-
* if false Repaint the union of the old and new rectangles.
186183
*/
187-
void ResizeView(nsView* aView, const nsRect& aRect,
188-
bool aRepaintExposedAreaOnly = false);
184+
void ResizeView(nsView* aView, const nsRect& aRect);
189185

190186
/**
191187
* Set the visibility of a view. Hidden views have the effect of hiding

0 commit comments

Comments
 (0)
Failed to load comments.