From 6041a1925c8e99b21e7a23b14f5633109c6a4ae1 Mon Sep 17 00:00:00 2001 From: jevering Date: Tue, 7 Jul 1998 22:20:00 +0000 Subject: [PATCH] Fixing optimized build. --- content/html/document/src/nsHTMLContentSink.cpp | 2 ++ layout/html/document/src/nsHTMLContentSink.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp index c7ce3f72c0c..6739a1b7cf0 100644 --- a/content/html/document/src/nsHTMLContentSink.cpp +++ b/content/html/document/src/nsHTMLContentSink.cpp @@ -221,9 +221,11 @@ protected: // Note: operator new zeros our memory HTMLContentSink::HTMLContentSink() { +#ifdef NS_DEBUG if (nsnull == gSinkLogModuleInfo) { gSinkLogModuleInfo = PR_NewLogModule("htmlcontentsink"); } +#endif // Set the first update delta to be 50ms LL_I2L(mUpdateDelta, PR_USEC_PER_MSEC * 50); diff --git a/layout/html/document/src/nsHTMLContentSink.cpp b/layout/html/document/src/nsHTMLContentSink.cpp index c7ce3f72c0c..6739a1b7cf0 100644 --- a/layout/html/document/src/nsHTMLContentSink.cpp +++ b/layout/html/document/src/nsHTMLContentSink.cpp @@ -221,9 +221,11 @@ protected: // Note: operator new zeros our memory HTMLContentSink::HTMLContentSink() { +#ifdef NS_DEBUG if (nsnull == gSinkLogModuleInfo) { gSinkLogModuleInfo = PR_NewLogModule("htmlcontentsink"); } +#endif // Set the first update delta to be 50ms LL_I2L(mUpdateDelta, PR_USEC_PER_MSEC * 50);