Index: Source/platform/exported/WebData.cpp |
diff --git a/Source/platform/exported/WebData.cpp b/Source/platform/exported/WebData.cpp |
index 4b4468ed1532af34d0da0c2d98562595b4c4629c..8b1a1ff2a2340c40d3a625b4a649e35cadd8fd7f 100644 |
--- a/Source/platform/exported/WebData.cpp |
+++ b/Source/platform/exported/WebData.cpp |
@@ -64,6 +64,15 @@ const char* WebData::data() const |
return m_private->data(); |
} |
+#if INSIDE_BLINK |
+String WebData::toASCIIString() const |
+{ |
+ String result(data(), size()); |
+ ASSERT(result.containsOnlyASCII()); |
+ return result; |
+} |
+#endif |
+ |
WebData::WebData(const PassRefPtr<SharedBuffer>& buffer) |
: m_private(buffer) |
{ |