diff options
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); |