Bug 734151 - remove new lines from the class in the CC log, r=bsmedberg
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Fri, 30 Mar 2012 09:38:00 -0700
changeset 94030 4c43cfe73516df0b3ec7686fc12a920ab85dc1f8
parent 94029 cf60d15e88040da8b309ec376ef2fbc84aa97ce6
child 94031 c8dbf446d2971a366c4d70440c953e9c6ecca235
child 112365 c95bd17c4ae77baa34324a9e790b5684254830eb
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs734151
milestone14.0a1
first release with
nightly linux32
4c43cfe73516 / 14.0a1 / 20120331031108 / files
nightly linux64
4c43cfe73516 / 14.0a1 / 20120331031108 / files
nightly mac
4c43cfe73516 / 14.0a1 / 20120331031108 / files
nightly win32
4c43cfe73516 / 14.0a1 / 20120331031108 / files
nightly win64
4c43cfe73516 / 14.0a1 / 20120331031108 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 734151 - remove new lines from the class in the CC log, r=bsmedberg
content/base/src/nsGenericElement.cpp
--- a/content/base/src/nsGenericElement.cpp
+++ b/content/base/src/nsGenericElement.cpp
@@ -4979,16 +4979,17 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_
     }
 
     nsAutoString classes;
     const nsAttrValue* classAttrValue = tmp->GetClasses();
     if (classAttrValue) {
       classes.AppendLiteral(" class='");
       nsAutoString classString;
       classAttrValue->ToString(classString);
+      classString.ReplaceChar(PRUnichar('\n'), PRUnichar(' '));
       classes.Append(classString);
       classes.AppendLiteral("'");
     }
 
     const char* nsuri = nsid < ArrayLength(kNSURIs) ? kNSURIs[nsid] : "";
     PR_snprintf(name, sizeof(name), "nsGenericElement%s %s%s%s %s",
                 nsuri,
                 localName.get(),