Add ifdef'ed Performance Reflow Counting code

This commit is contained in:
rods@netscape.com
2000-04-21 21:51:35 +00:00
parent eb3b1a4049
commit d129721280
24 changed files with 41 additions and 1 deletions

View File

@@ -522,6 +522,8 @@ nsHTMLButtonControlFrame::Reflow(nsIPresContext* aPresContext,
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus)
{
DO_GLOBAL_REFLOW_COUNT("nsHTMLButtonControlFrame", aReflowState.reason);
if (!mFormFrame && (eReflowReason_Initial == aReflowState.reason)) {
mPresContext = aPresContext;
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_TRUE);