Mask out temporary bits from the frame state to reduce regression test noise.

Bug 265552, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2004-10-24 17:23:40 +00:00
Родитель d129c1e2ce
Коммит 5f63b7e071
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -428,6 +428,7 @@ public:
#ifdef DEBUG
NS_IMETHOD List(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent) const;
NS_IMETHOD GetFrameName(nsAString& aResult) const;
NS_IMETHOD_(nsFrameState) GetDebugStateBits() const ;
#endif
NS_IMETHOD GetPosition(nsPresContext* aCX,
@ -5876,6 +5877,14 @@ nsTextFrame::GetFrameName(nsAString& aResult) const
return MakeFrameName(NS_LITERAL_STRING("Text"), aResult);
}
NS_IMETHODIMP_(nsFrameState)
nsTextFrame::GetDebugStateBits() const
{
// mask out our emptystate flags; those are just caches
return nsFrame::GetDebugStateBits() &
~(TEXT_WHITESPACE_FLAGS | TEXT_REFLOW_FLAGS);
}
NS_IMETHODIMP
nsTextFrame::List(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent) const
{

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

@ -428,6 +428,7 @@ public:
#ifdef DEBUG
NS_IMETHOD List(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent) const;
NS_IMETHOD GetFrameName(nsAString& aResult) const;
NS_IMETHOD_(nsFrameState) GetDebugStateBits() const ;
#endif
NS_IMETHOD GetPosition(nsPresContext* aCX,
@ -5876,6 +5877,14 @@ nsTextFrame::GetFrameName(nsAString& aResult) const
return MakeFrameName(NS_LITERAL_STRING("Text"), aResult);
}
NS_IMETHODIMP_(nsFrameState)
nsTextFrame::GetDebugStateBits() const
{
// mask out our emptystate flags; those are just caches
return nsFrame::GetDebugStateBits() &
~(TEXT_WHITESPACE_FLAGS | TEXT_REFLOW_FLAGS);
}
NS_IMETHODIMP
nsTextFrame::List(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent) const
{