mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1015781 - part 8, Make nsTableCellFrame::AppendFrames/InsertFrames/RemoveFrame DEBUG only. r=roc
This commit is contained in:
parent
b4c312216c
commit
7fb0cc9b2e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user