summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/css/CSSOMUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/CSSOMUtils.cpp')
-rw-r--r--Source/WebCore/css/CSSOMUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/css/CSSOMUtils.cpp b/Source/WebCore/css/CSSOMUtils.cpp
index d1e9638..7ecd938 100644
--- a/Source/WebCore/css/CSSOMUtils.cpp
+++ b/Source/WebCore/css/CSSOMUtils.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "CSSOMUtils.h"
-#include "PlatformString.h"
+#include <wtf/HexNumber.h>
namespace WebCore {
@@ -53,7 +53,9 @@ void serializeCharacter(UChar32 c, Vector<UChar>& appendTo)
void serializeCharacterAsCodePoint(UChar32 c, Vector<UChar>& appendTo)
{
- append(appendTo, String::format("\\%x ", c));
+ appendTo.append('\\');
+ appendUnsignedAsHex(c, appendTo, Lowercase);
+ appendTo.append(' ');
}
void serializeIdentifier(const String& identifier, String& appendTo)