зеркало из https://github.com/mozilla/gecko-dev.git
Bug 490909: Remove old layout debugging code, patch #2: remove 'VerifyTree' & related code. r+sr=dbaron
This commit is contained in:
Родитель
7d1a8d37e8
Коммит
42f2f94d22
|
@ -7033,13 +7033,6 @@ PresShell::DoReflow(nsIFrame* target, PRBool aInterruptible)
|
|||
void
|
||||
PresShell::DoVerifyReflow()
|
||||
{
|
||||
if (nsIFrameDebug::GetVerifyTreeEnable()) {
|
||||
nsIFrame* rootFrame = FrameManager()->GetRootFrame();
|
||||
nsIFrameDebug *frameDebug = do_QueryFrame(rootFrame);
|
||||
if (frameDebug) {
|
||||
frameDebug->VerifyTree();
|
||||
}
|
||||
}
|
||||
if (GetVerifyReflowEnable()) {
|
||||
// First synchronously render what we have so far so that we can
|
||||
// see it.
|
||||
|
|
|
@ -6395,21 +6395,6 @@ nsBlockFrame::ChildIsDirty(nsIFrame* aChild)
|
|||
nsBlockFrameSuper::ChildIsDirty(aChild);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Start Debugging
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::VerifyTree() const
|
||||
{
|
||||
// XXX rewrite this
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
// End Debugging
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBlockFrame::Init(nsIContent* aContent,
|
||||
nsIFrame* aParent,
|
||||
|
|
|
@ -196,7 +196,6 @@ public:
|
|||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD_(nsFrameState) GetDebugStateBits() const;
|
||||
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
#endif
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
|
|
|
@ -202,28 +202,6 @@ PRBool nsIFrameDebug::GetShowEventTargetFrameBorder()
|
|||
*/
|
||||
static PRLogModuleInfo* gLogModule;
|
||||
|
||||
static PRLogModuleInfo* gFrameVerifyTreeLogModuleInfo;
|
||||
|
||||
static PRBool gFrameVerifyTreeEnable = PRBool(0x55);
|
||||
|
||||
PRBool
|
||||
nsIFrameDebug::GetVerifyTreeEnable()
|
||||
{
|
||||
if (gFrameVerifyTreeEnable == PRBool(0x55)) {
|
||||
if (nsnull == gFrameVerifyTreeLogModuleInfo) {
|
||||
gFrameVerifyTreeLogModuleInfo = PR_NewLogModule("frameverifytree");
|
||||
gFrameVerifyTreeEnable = 0 != gFrameVerifyTreeLogModuleInfo->level;
|
||||
}
|
||||
}
|
||||
return gFrameVerifyTreeEnable;
|
||||
}
|
||||
|
||||
void
|
||||
nsIFrameDebug::SetVerifyTreeEnable(PRBool aEnabled)
|
||||
{
|
||||
gFrameVerifyTreeEnable = aEnabled;
|
||||
}
|
||||
|
||||
static PRLogModuleInfo* gStyleVerifyTreeLogModuleInfo;
|
||||
|
||||
static PRBool gStyleVerifyTreeEnable = PRBool(0x55);
|
||||
|
@ -4479,13 +4457,6 @@ nsFrame::DumpBaseRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32
|
|||
list = GetAdditionalChildListName(listIndex++);
|
||||
} while (nsnull != list);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFrame::VerifyTree() const
|
||||
{
|
||||
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*this method may.. invalidate if the state was changed or if aForceRedraw is PR_TRUE
|
||||
|
|
|
@ -235,7 +235,6 @@ public:
|
|||
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
||||
NS_IMETHOD_(nsFrameState) GetDebugStateBits() const;
|
||||
NS_IMETHOD DumpRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent);
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
#endif
|
||||
|
||||
NS_IMETHOD SetSelected(nsPresContext* aPresContext, nsIDOMRange *aRange,PRBool aSelected, nsSpread aSpread, SelectionType aType);
|
||||
|
|
|
@ -180,8 +180,6 @@ public:
|
|||
NS_IMETHOD BeginSwapDocShells(nsIFrame* aOther);
|
||||
virtual void EndSwapDocShells(nsIFrame* aOther);
|
||||
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
|
||||
// nsIReflowCallback
|
||||
virtual PRBool ReflowFinished();
|
||||
virtual void ReflowCallbackCanceled();
|
||||
|
@ -646,14 +644,6 @@ nsSubDocumentFrame::ReflowCallbackCanceled()
|
|||
mPostedReflowCallback = PR_FALSE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSubDocumentFrame::VerifyTree() const
|
||||
{
|
||||
// XXX Completely disabled for now; once pseud-frames are reworked
|
||||
// then we can turn it back on.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsSubDocumentFrame::AttributeChanged(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
|
|
|
@ -1467,15 +1467,6 @@ nsHTMLFramesetFrame::SetBorderResize(PRInt32* aChildTypes,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFramesetFrame::VerifyTree() const
|
||||
{
|
||||
// XXX Completely disabled for now; once pseud-frames are reworked
|
||||
// then we can turn it back on.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLFramesetFrame::StartMouseDrag(nsPresContext* aPresContext,
|
||||
nsHTMLFramesetBorderFrame* aBorder,
|
||||
|
|
|
@ -152,8 +152,6 @@ public:
|
|||
|
||||
virtual PRBool IsLeaf() const;
|
||||
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
|
||||
void StartMouseDrag(nsPresContext* aPresContext,
|
||||
nsHTMLFramesetBorderFrame* aBorder,
|
||||
nsGUIEvent* aEvent);
|
||||
|
|
|
@ -80,21 +80,6 @@ public:
|
|||
*/
|
||||
NS_IMETHOD DumpRegressionData(nsPresContext* aPresContext, FILE* out, PRInt32 aIndent) = 0;
|
||||
|
||||
NS_IMETHOD VerifyTree() const = 0;
|
||||
|
||||
/**
|
||||
* See if tree verification is enabled. To enable tree verification add
|
||||
* "frameverifytree:1" to your NSPR_LOG_MODULES environment variable
|
||||
* (any non-zero debug level will work). Or, call SetVerifyTreeEnable
|
||||
* with PR_TRUE.
|
||||
*/
|
||||
static PRBool GetVerifyTreeEnable();
|
||||
|
||||
/**
|
||||
* Set the verify-tree enable flag.
|
||||
*/
|
||||
static void SetVerifyTreeEnable(PRBool aEnabled);
|
||||
|
||||
/**
|
||||
* See if style tree verification is enabled. To enable style tree
|
||||
* verification add "styleverifytree:1" to your NSPR_LOG_MODULES
|
||||
|
|
|
@ -1283,13 +1283,6 @@ NS_METHOD nsTableOuterFrame::Reflow(nsPresContext* aPresContext,
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
NS_METHOD nsTableOuterFrame::VerifyTree() const
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
nsIAtom*
|
||||
nsTableOuterFrame::GetType() const
|
||||
{
|
||||
|
|
|
@ -205,13 +205,6 @@ protected:
|
|||
* @see nsHTMLContainerFrame::GetSkipSides */
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
/** overridden here to handle special caption-table relationship
|
||||
* @see nsContainerFrame::VerifyTree
|
||||
*/
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
#endif
|
||||
|
||||
PRUint8 GetCaptionSide(); // NS_STYLE_CAPTION_SIDE_* or NO_SIDE
|
||||
|
||||
PRBool HasSideCaption() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче