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
+2
View File
@@ -276,6 +276,8 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsIPresContext* aPresContext,
const nsHTMLReflowState& aReflowState,
nsReflowStatus& aStatus)
{
DO_GLOBAL_REFLOW_COUNT("nsFileControlFrame", aReflowState.reason);
if (mFormFrame == nsnull && eReflowReason_Initial == aReflowState.reason) {
// add ourself as an nsIFormControlFrame
nsFormFrame::AddFormControlFrame(aPresContext, *NS_STATIC_CAST(nsIFrame*, this));