Replace more instances of += with StringBuilder
[WebKit-https.git] / Source / WebCore / css / CSSFunctionValue.cpp
index 9f8f24f..204cf4a 100644 (file)
@@ -30,6 +30,7 @@
 #include "CSSValueList.h"
 #include "MemoryInstrumentation.h"
 #include <wtf/PassOwnPtr.h>
+#include <wtf/text/StringBuilder.h>
 
 namespace WebCore {
 
@@ -43,11 +44,12 @@ CSSFunctionValue::CSSFunctionValue(CSSParserFunction* function)
 
 String CSSFunctionValue::customCssText() const
 {
-    String result = m_name; // Includes the '('
+    StringBuilder result;
+    result.append(m_name); // Includes the '('
     if (m_args)
-        result += m_args->cssText();
-    result += ")";
-    return result;
+        result.append(m_args->cssText());
+    result.append(')');
+    return result.toString();
 }
 
 void CSSFunctionValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const