Bug 1180048 - Switch warning about having a zero length axis to a LAYOUT_WARNING. r=dholbert
authorEric Rahm <erahm@mozilla.com>
Wed, 29 Jul 2015 16:06:14 -0700
changeset 287184 4a09252567e2e07f599665c0ddcd718c9dc18656
parent 287183 41dadd801de3066d9dff42713d824fc9890ff9c9
child 287185 87121bfe4be93ab873047f62ead7230b68ed8891
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1180048
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1180048 - Switch warning about having a zero length axis to a LAYOUT_WARNING. r=dholbert
dom/svg/nsSVGLength2.cpp
--- a/dom/svg/nsSVGLength2.cpp
+++ b/dom/svg/nsSVGLength2.cpp
@@ -12,16 +12,17 @@
 #include "nsContentUtils.h" // NS_ENSURE_FINITE
 #include "nsIFrame.h"
 #include "nsSMILFloatType.h"
 #include "nsSMILValue.h"
 #include "nsSVGAttrTearoffTable.h"
 #include "nsSVGIntegrationUtils.h"
 #include "nsTextFormatter.h"
 #include "DOMSVGLength.h"
+#include "LayoutLogging.h"
 
 using namespace mozilla;
 using namespace mozilla::dom;
 
 static nsIAtom** const unitMap[] =
 {
   nullptr, /* SVG_LENGTHTYPE_UNKNOWN */
   nullptr, /* SVG_LENGTHTYPE_NUMBER */
@@ -116,17 +117,17 @@ GetValueFromString(const nsAString& aStr
 }
 
 static float GetMMPerPixel() { return MM_PER_INCH_FLOAT / 96; }
 
 static float
 FixAxisLength(float aLength)
 {
   if (aLength == 0.0f) {
-    NS_WARNING("zero axis length");
+    LAYOUT_WARNING("zero axis length");
     return 1e-20f;
   }
   return aLength;
 }
 
 SVGElementMetrics::SVGElementMetrics(nsSVGElement* aSVGElement,
                                      SVGSVGElement* aCtx)
   : mSVGElement(aSVGElement)