Don't printf CSS errors to standard output. (Bug 449429) r+sr=bzbarsky
authorL. David Baron <dbaron@dbaron.org>
Wed, 06 Aug 2008 10:58:14 -0700
changeset 16440 9f389e9db4dcd6e4aee78921d8ed2684d9f15396
parent 16439 c19194ae08ea48cb342567d3605544db51974b14
child 16441 0ae6f915dd4fc9fa724f1aa4d71b821aa3876532
push id1038
push userdbaron@mozilla.com
push dateWed, 06 Aug 2008 17:58:28 +0000
treeherdermozilla-central@9f389e9db4dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs449429
milestone1.9.1a2pre
Don't printf CSS errors to standard output. (Bug 449429) r+sr=bzbarsky
layout/style/nsCSSScanner.cpp
--- a/layout/style/nsCSSScanner.cpp
+++ b/layout/style/nsCSSScanner.cpp
@@ -320,23 +320,16 @@ void nsCSSScanner::ClearError()
 {
   mError.Truncate();
 }
 
 void nsCSSScanner::OutputError()
 {
   if (mError.IsEmpty()) return;
  
-#ifdef DEBUG
-  if (gReportErrors)
-    fprintf(stderr, "CSS Error (%s :%u.%u): %s\n",
-                    mFileName.get(), mErrorLineNumber, mErrorColNumber,
-                    NS_ConvertUTF16toUTF8(mError).get());
-#endif
-
   // Log it to the Error console
 
   if (InitGlobals() && gReportErrors) {
     nsresult rv;
     nsCOMPtr<nsIScriptError> errorObject =
       do_CreateInstance(gScriptErrorFactory, &rv);
     if (NS_SUCCEEDED(rv)) {
       rv = errorObject->Init(mError.get(),