mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1261698. Make ReparentFrameViewTo return void because it always returns NS_OK. r=mats
This commit is contained in:
parent
d94e6fb6a4
commit
42e0b26d3f
@ -372,7 +372,7 @@ nsContainerFrame::PeekOffsetCharacter(bool aForward, int32_t* aOffset,
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Helper member functions
|
||||
|
||||
static nsresult
|
||||
static void
|
||||
ReparentFrameViewTo(nsIFrame* aFrame,
|
||||
nsViewManager* aViewManager,
|
||||
nsView* aNewParentView,
|
||||
@ -382,7 +382,7 @@ ReparentFrameViewTo(nsIFrame* aFrame,
|
||||
#ifdef MOZ_XUL
|
||||
if (aFrame->GetType() == nsGkAtoms::menuPopupFrame) {
|
||||
// This view must be parented by the root view, don't reparent it.
|
||||
return NS_OK;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
nsView* view = aFrame->GetView();
|
||||
@ -407,8 +407,6 @@ ReparentFrameViewTo(nsIFrame* aFrame,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
@ -540,8 +538,8 @@ nsContainerFrame::ReparentFrameView(nsIFrame* aChildFrame,
|
||||
// anything
|
||||
if (oldParentView != newParentView) {
|
||||
// They're not so we need to reparent any child views
|
||||
return ReparentFrameViewTo(aChildFrame, oldParentView->GetViewManager(), newParentView,
|
||||
oldParentView);
|
||||
ReparentFrameViewTo(aChildFrame, oldParentView->GetViewManager(), newParentView,
|
||||
oldParentView);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user