зеркало из https://github.com/mozilla/pjs.git
Mask out temporary bits from the frame state to reduce regression test noise.
Bug 265552, r+sr=roc
This commit is contained in:
Родитель
d129c1e2ce
Коммит
5f63b7e071
|
@ -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
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче