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
This commit is contained in:
Hiroyuki Ikezoe 2024-04-25 02:37:26 +00:00
Родитель eb9c75ec17
Коммит b867eb5d2a
5 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@ -780,7 +780,7 @@ void nsContainerFrame::SyncFrameViewAfterReflow(nsPresContext* aPresContext,
if (!(aFlags & ReflowChildFlags::NoSizeView)) {
nsViewManager* vm = aView->GetViewManager();
vm->ResizeView(aView, aInkOverflowArea, true);
vm->ResizeView(aView, aInkOverflowArea);
}
}

Просмотреть файл

@ -8010,7 +8010,7 @@ bool nsIFrame::UpdateOverflow() {
if (nsView* view = GetView()) {
// Make sure the frame's view is properly sized.
nsViewManager* vm = view->GetViewManager();
vm->ResizeView(view, overflowAreas.InkOverflow(), true);
vm->ResizeView(view, overflowAreas.InkOverflow());
}
return true;

Просмотреть файл

@ -705,7 +705,7 @@ void nsSubDocumentFrame::Reflow(nsPresContext* aPresContext,
nsViewManager* vm = mInnerView->GetViewManager();
vm->MoveViewTo(mInnerView, destRect.x, destRect.y);
vm->ResizeView(mInnerView, nsRect(nsPoint(0, 0), destRect.Size()), true);
vm->ResizeView(mInnerView, nsRect(nsPoint(0, 0), destRect.Size()));
}
aDesiredSize.SetOverflowAreasToDesiredBounds();

Просмотреть файл

@ -789,8 +789,7 @@ void nsViewManager::MoveViewTo(nsView* aView, nscoord aX, nscoord aY) {
aView->SetPosition(aX, aY);
}
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect,
bool aRepaintExposedAreaOnly) {
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect) {
NS_ASSERTION(aView->GetViewManager() == this, "wrong view manager");
nsRect oldDimensions = aView->GetDimensions();

Просмотреть файл

@ -180,12 +180,8 @@ class nsViewManager final {
* The view manager generates the appropriate dirty regions.
* @param aView view to move
* @param the new bounds relative to the current position
* @param RepaintExposedAreaOnly
* if true Repaint only the expanded or contracted region,
* if false Repaint the union of the old and new rectangles.
*/
void ResizeView(nsView* aView, const nsRect& aRect,
bool aRepaintExposedAreaOnly = false);
void ResizeView(nsView* aView, const nsRect& aRect);
/**
* Set the visibility of a view. Hidden views have the effect of hiding