Index: third_party/WebKit/Source/wtf/text/TextCodec.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/TextCodec.cpp b/third_party/WebKit/Source/wtf/text/TextCodec.cpp |
index 191ebb5689055add7eb204a4518e9cc21fad1ce9..50b334f2c2cea88a4c345e06d0d6dcaf06fc5a06 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextCodec.cpp |
+++ b/third_party/WebKit/Source/wtf/text/TextCodec.cpp |
@@ -47,6 +47,10 @@ int TextCodec::getUnencodableReplacement(unsigned codePoint, UnencodableHandling |
case URLEncodedEntitiesForUnencodables: |
snprintf(replacement, sizeof(UnencodableReplacementArray), "%%26%%23%u%%3B", codePoint); |
return static_cast<int>(strlen(replacement)); |
+ |
+ case CSSEncodedEntitiesForUnencodables: |
+ snprintf(replacement, sizeof(UnencodableReplacementArray), "\\%x", codePoint); |
Łukasz Anforowicz
2016/04/27 04:28:12
I don't understand how we handle "A 'real' space a
bburns
2016/04/27 20:24:21
Added the space as suggested and augmented the tes
|
+ return static_cast<int>(strlen(replacement)); |
} |
ASSERT_NOT_REACHED(); |
replacement[0] = 0; |