Bug 852428 part 2. Make nsIFrame::Init infallible. r=dholbert

This commit is contained in:
Boris Zbarsky
2013-03-19 21:47:48 -04:00
parent 227171bc03
commit c0d4537026
121 changed files with 372 additions and 540 deletions

View File

@@ -66,13 +66,13 @@ nsTableCellFrame::GetNextCell() const
return nullptr;
}
NS_IMETHODIMP
void
nsTableCellFrame::Init(nsIContent* aContent,
nsIFrame* aParent,
nsIFrame* aPrevInFlow)
{
// Let the base class do its initialization
nsresult rv = nsContainerFrame::Init(aContent, aParent, aPrevInFlow);
nsContainerFrame::Init(aContent, aParent, aPrevInFlow);
if (GetStateBits() & NS_FRAME_FONT_INFLATION_CONTAINER) {
AddStateBits(NS_FRAME_FONT_INFLATION_FLOW_ROOT);
@@ -85,8 +85,6 @@ nsTableCellFrame::Init(nsIContent* aContent,
cellFrame->GetColIndex(colIndex);
SetColIndex(colIndex);
}
return rv;
}
// nsIPercentHeightObserver methods