Bug 825866. Part 5: Remove NS_IMETHOD declarations that aren't needed anymore. r=tnikkel

This commit is contained in:
Robert O'Callahan 2013-01-04 02:23:09 +13:00
parent ef9b45c5d9
commit 4c11563f7f
2 changed files with 4 additions and 14 deletions

View File

@ -362,7 +362,7 @@ public:
* changed.
* @param visibility new visibility state
*/
NS_IMETHOD SetVisibility(nsViewVisibility visibility);
void SetVisibility(nsViewVisibility visibility);
/**
* Called to indicate that the z-index of a view has been changed.
@ -383,7 +383,7 @@ public:
* views that need to be drawn in front of all other views.
* @result true if the view floats, false otherwise.
*/
NS_IMETHOD SetFloating(bool aFloatingView);
void SetFloating(bool aFloatingView);
// Helper function to get mouse grabbing off this view (by moving it to the
// parent, if we can)

View File

@ -331,28 +331,18 @@ void nsIView::NotifyEffectiveVisibilityChanged(bool aEffectivelyVisible)
}
}
NS_IMETHODIMP nsIView::SetVisibility(nsViewVisibility aVisibility)
void nsIView::SetVisibility(nsViewVisibility aVisibility)
{
mVis = aVisibility;
NotifyEffectiveVisibilityChanged(IsEffectivelyVisible());
return NS_OK;
}
NS_IMETHODIMP nsIView::SetFloating(bool aFloatingView)
void nsIView::SetFloating(bool aFloatingView)
{
if (aFloatingView)
mVFlags |= NS_VIEW_FLAG_FLOATING;
else
mVFlags &= ~NS_VIEW_FLAG_FLOATING;
#if 0
// recursively make all sub-views "floating" grr.
for (nsIView* child = mFirstChild; chlid; child = child->GetNextSibling()) {
child->SetFloating(aFloatingView);
}
#endif
return NS_OK;
}
void nsIView::InvalidateHierarchy(nsViewManager *aViewManagerParent)