diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebCore/css/ShadowValue.cpp | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebCore/css/ShadowValue.cpp')
-rw-r--r-- | Source/WebCore/css/ShadowValue.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/Source/WebCore/css/ShadowValue.cpp b/Source/WebCore/css/ShadowValue.cpp index 5db003651..90ae152fb 100644 --- a/Source/WebCore/css/ShadowValue.cpp +++ b/Source/WebCore/css/ShadowValue.cpp @@ -21,8 +21,9 @@ #include "ShadowValue.h" #include "CSSPrimitiveValue.h" -#include "MemoryInstrumentation.h" -#include "PlatformString.h" +#include "WebCoreMemoryInstrumentation.h" +#include <wtf/text/StringBuilder.h> +#include <wtf/text/WTFString.h> namespace WebCore { @@ -45,42 +46,42 @@ ShadowValue::ShadowValue(PassRefPtr<CSSPrimitiveValue> _x, String ShadowValue::customCssText() const { - String text(""); + StringBuilder text; if (color) - text += color->cssText(); + text.append(color->cssText()); if (x) { if (!text.isEmpty()) - text += " "; - text += x->cssText(); + text.append(' '); + text.append(x->cssText()); } if (y) { if (!text.isEmpty()) - text += " "; - text += y->cssText(); + text.append(' '); + text.append(y->cssText()); } if (blur) { if (!text.isEmpty()) - text += " "; - text += blur->cssText(); + text.append(' '); + text.append(blur->cssText()); } if (spread) { if (!text.isEmpty()) - text += " "; - text += spread->cssText(); + text.append(' '); + text.append(spread->cssText()); } if (style) { if (!text.isEmpty()) - text += " "; - text += style->cssText(); + text.append(' '); + text.append(style->cssText()); } - return text; + return text.toString(); } void ShadowValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const { - MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::CSS); + MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); info.addInstrumentedMember(x); info.addInstrumentedMember(y); info.addInstrumentedMember(blur); |