Bug 1264183. Remove unused argument to nsView::InvalidateHierarchy. r=mats

This commit is contained in:
Timothy Nikkel 2016-04-22 00:17:15 -05:00
parent d5ab4ae492
commit 077c1af430
2 changed files with 6 additions and 9 deletions

View File

@ -440,13 +440,13 @@ void nsView::SetFloating(bool aFloatingView)
mVFlags &= ~NS_VIEW_FLAG_FLOATING; mVFlags &= ~NS_VIEW_FLAG_FLOATING;
} }
void nsView::InvalidateHierarchy(nsViewManager *aViewManagerParent) void nsView::InvalidateHierarchy()
{ {
if (mViewManager->GetRootView() == this) if (mViewManager->GetRootView() == this)
mViewManager->InvalidateHierarchy(); mViewManager->InvalidateHierarchy();
for (nsView *child = mFirstChild; child; child = child->GetNextSibling()) for (nsView *child = mFirstChild; child; child = child->GetNextSibling())
child->InvalidateHierarchy(aViewManagerParent); child->InvalidateHierarchy();
} }
void nsView::InsertChild(nsView *aChild, nsView *aSibling) void nsView::InsertChild(nsView *aChild, nsView *aSibling)
@ -477,7 +477,7 @@ void nsView::InsertChild(nsView *aChild, nsView *aSibling)
nsViewManager *vm = aChild->GetViewManager(); nsViewManager *vm = aChild->GetViewManager();
if (vm->GetRootView() == aChild) 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(); nsViewManager *vm = child->GetViewManager();
if (vm->GetRootView() == child) if (vm->GetRootView() == child)
{ {
child->InvalidateHierarchy(GetViewManager()); child->InvalidateHierarchy();
} }
} }
} }

View File

@ -458,11 +458,8 @@ private:
void NotifyEffectiveVisibilityChanged(bool aEffectivelyVisible); void NotifyEffectiveVisibilityChanged(bool aEffectivelyVisible);
// Update the cached RootViewManager for all view manager descendents, // Update the cached RootViewManager for all view manager descendents.
// If the hierarchy is being removed, aViewManagerParent points to the view void InvalidateHierarchy();
// 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);
nsViewManager *mViewManager; nsViewManager *mViewManager;
nsView *mParent; nsView *mParent;