Bug 1015781 - part 8, Make nsTableCellFrame::AppendFrames/InsertFrames/RemoveFrame DEBUG only. r=roc

This commit is contained in:
Mats Palmgren 2014-05-28 19:36:59 +00:00
Родитель 9d4e33c505
Коммит 025cb36c63
2 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -240,12 +240,12 @@ nsTableCellFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
}
}
#ifdef DEBUG
void
nsTableCellFrame::AppendFrames(ChildListID aListID,
nsFrameList& aFrameList)
{
NS_PRECONDITION(false, "unsupported operation");
MOZ_CRASH("unsupported operation");
}
void
@ -253,15 +253,16 @@ nsTableCellFrame::InsertFrames(ChildListID aListID,
nsIFrame* aPrevFrame,
nsFrameList& aFrameList)
{
NS_PRECONDITION(false, "unsupported operation");
MOZ_CRASH("unsupported operation");
}
void
nsTableCellFrame::RemoveFrame(ChildListID aListID,
nsIFrame* aOldFrame)
{
NS_PRECONDITION(false, "unsupported operation");
MOZ_CRASH("unsupported operation");
}
#endif
void nsTableCellFrame::SetColIndex(int32_t aColIndex)
{

Просмотреть файл

@ -60,9 +60,9 @@ public:
/** @see nsIFrame::DidSetStyleContext */
virtual void DidSetStyleContext(nsStyleContext* aOldStyleContext) MOZ_OVERRIDE;
// table cells contain a block frame which does most of the work, and
// so these functions should never be called. They assert and return
// NS_ERROR_NOT_IMPLEMENTED
#ifdef DEBUG
// Our anonymous block frame is the content insertion frame so these
// methods should never be called:
virtual void AppendFrames(ChildListID aListID,
nsFrameList& aFrameList) MOZ_OVERRIDE;
virtual void InsertFrames(ChildListID aListID,
@ -70,6 +70,7 @@ public:
nsFrameList& aFrameList) MOZ_OVERRIDE;
virtual void RemoveFrame(ChildListID aListID,
nsIFrame* aOldFrame) MOZ_OVERRIDE;
#endif
virtual nsContainerFrame* GetContentInsertionFrame() MOZ_OVERRIDE {
return GetFirstPrincipalChild()->GetContentInsertionFrame();