mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
eb9c75ec17
commit
b867eb5d2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user