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:
@@ -780,7 +780,7 @@ void nsContainerFrame::SyncFrameViewAfterReflow(nsPresContext* aPresContext,
|
|||||||
if (!(aFlags & ReflowChildFlags::NoSizeView)) {
|
if (!(aFlags & ReflowChildFlags::NoSizeView)) {
|
||||||
nsViewManager* vm = aView->GetViewManager();
|
nsViewManager* vm = aView->GetViewManager();
|
||||||
|
|
||||||
vm->ResizeView(aView, aInkOverflowArea, true);
|
vm->ResizeView(aView, aInkOverflowArea);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8010,7 +8010,7 @@ bool nsIFrame::UpdateOverflow() {
|
|||||||
if (nsView* view = GetView()) {
|
if (nsView* view = GetView()) {
|
||||||
// Make sure the frame's view is properly sized.
|
// Make sure the frame's view is properly sized.
|
||||||
nsViewManager* vm = view->GetViewManager();
|
nsViewManager* vm = view->GetViewManager();
|
||||||
vm->ResizeView(view, overflowAreas.InkOverflow(), true);
|
vm->ResizeView(view, overflowAreas.InkOverflow());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -705,7 +705,7 @@ void nsSubDocumentFrame::Reflow(nsPresContext* aPresContext,
|
|||||||
|
|
||||||
nsViewManager* vm = mInnerView->GetViewManager();
|
nsViewManager* vm = mInnerView->GetViewManager();
|
||||||
vm->MoveViewTo(mInnerView, destRect.x, destRect.y);
|
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();
|
aDesiredSize.SetOverflowAreasToDesiredBounds();
|
||||||
|
|||||||
@@ -789,8 +789,7 @@ void nsViewManager::MoveViewTo(nsView* aView, nscoord aX, nscoord aY) {
|
|||||||
aView->SetPosition(aX, aY);
|
aView->SetPosition(aX, aY);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect,
|
void nsViewManager::ResizeView(nsView* aView, const nsRect& aRect) {
|
||||||
bool aRepaintExposedAreaOnly) {
|
|
||||||
NS_ASSERTION(aView->GetViewManager() == this, "wrong view manager");
|
NS_ASSERTION(aView->GetViewManager() == this, "wrong view manager");
|
||||||
|
|
||||||
nsRect oldDimensions = aView->GetDimensions();
|
nsRect oldDimensions = aView->GetDimensions();
|
||||||
|
|||||||
@@ -180,12 +180,8 @@ class nsViewManager final {
|
|||||||
* The view manager generates the appropriate dirty regions.
|
* The view manager generates the appropriate dirty regions.
|
||||||
* @param aView view to move
|
* @param aView view to move
|
||||||
* @param the new bounds relative to the current position
|
* @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,
|
void ResizeView(nsView* aView, const nsRect& aRect);
|
||||||
bool aRepaintExposedAreaOnly = false);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the visibility of a view. Hidden views have the effect of hiding
|
* Set the visibility of a view. Hidden views have the effect of hiding
|
||||||
|
|||||||
Reference in New Issue
Block a user