Backout 14bea2e7f431 (bug 762119) for compilation failures
authorEd Morley <emorley@mozilla.com>
Thu, 07 Jun 2012 09:40:02 +0100
changeset 96054 30fc3d3e10d3fe01b794bc96648bb44bcf780e3a
parent 96053 14bea2e7f43133c1eb5565caf7c181b6eb9fb0db
child 96055 87bd340fac6aa9f70c42bb4a8fbe0b7325277b0d
push id841
push usertim.taubert@gmx.de
push dateSat, 09 Jun 2012 15:34:50 +0000
treeherderfx-team@2f324831c02d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs762119
milestone16.0a1
backs out14bea2e7f43133c1eb5565caf7c181b6eb9fb0db
Backout 14bea2e7f431 (bug 762119) for compilation failures
content/svg/content/src/nsSVGElement.cpp
--- a/content/svg/content/src/nsSVGElement.cpp
+++ b/content/svg/content/src/nsSVGElement.cpp
@@ -1238,17 +1238,21 @@ ParseMappedAttrAnimValueCallback(void*  
   NS_ABORT_IF_FALSE(aPropertyName != SMIL_MAPPED_ATTR_STYLERULE_ATOM,
                     "animated content style rule should have been removed "
                     "from properties table already (we're rebuilding it now)");
 
   MappedAttrParser* mappedAttrParser =
     static_cast<MappedAttrParser*>(aData);
 
   nsStringBuffer* valueBuf = static_cast<nsStringBuffer*>(aPropertyValue);
-  mappedAttrParser->ParseMappedAttrValue(aPropertyName, nsCheapString(valueBuf));
+  nsAutoString value;
+  PRUint32 len = NS_strlen(static_cast<PRUnichar*>(valueBuf->Data()));
+  valueBuf->ToString(len, value);
+
+  mappedAttrParser->ParseMappedAttrValue(aPropertyName, value);
 }
 
 // Callback for freeing animated content style rule, in property table.
 static void
 ReleaseStyleRule(void*    aObject,       /* unused */
                  nsIAtom* aPropertyName,
                  void*    aPropertyValue,
                  void*    aData          /* unused */)