mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Bug 1264183. Remove unused argument to nsView::InvalidateHierarchy. r=mats
This commit is contained in:
parent
d5ab4ae492
commit
077c1af430
@ -440,13 +440,13 @@ void nsView::SetFloating(bool aFloatingView)
|
||||
mVFlags &= ~NS_VIEW_FLAG_FLOATING;
|
||||
}
|
||||
|
||||
void nsView::InvalidateHierarchy(nsViewManager *aViewManagerParent)
|
||||
void nsView::InvalidateHierarchy()
|
||||
{
|
||||
if (mViewManager->GetRootView() == this)
|
||||
mViewManager->InvalidateHierarchy();
|
||||
|
||||
for (nsView *child = mFirstChild; child; child = child->GetNextSibling())
|
||||
child->InvalidateHierarchy(aViewManagerParent);
|
||||
child->InvalidateHierarchy();
|
||||
}
|
||||
|
||||
void nsView::InsertChild(nsView *aChild, nsView *aSibling)
|
||||
@ -477,7 +477,7 @@ void nsView::InsertChild(nsView *aChild, nsView *aSibling)
|
||||
nsViewManager *vm = aChild->GetViewManager();
|
||||
if (vm->GetRootView() == aChild)
|
||||
{
|
||||
aChild->InvalidateHierarchy(nullptr); // don't care about releasing grabs
|
||||
aChild->InvalidateHierarchy();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -513,7 +513,7 @@ void nsView::RemoveChild(nsView *child)
|
||||
nsViewManager *vm = child->GetViewManager();
|
||||
if (vm->GetRootView() == child)
|
||||
{
|
||||
child->InvalidateHierarchy(GetViewManager());
|
||||
child->InvalidateHierarchy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -458,11 +458,8 @@ private:
|
||||
|
||||
void NotifyEffectiveVisibilityChanged(bool aEffectivelyVisible);
|
||||
|
||||
// Update the cached RootViewManager for all view manager descendents,
|
||||
// If the hierarchy is being removed, aViewManagerParent points to the view
|
||||
// manager for the hierarchy's old parent, and will have its mouse grab
|
||||
// released if it points to any view in this view hierarchy.
|
||||
void InvalidateHierarchy(nsViewManager *aViewManagerParent);
|
||||
// Update the cached RootViewManager for all view manager descendents.
|
||||
void InvalidateHierarchy();
|
||||
|
||||
nsViewManager *mViewManager;
|
||||
nsView *mParent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user