| Index: third_party/WebKit/Source/wtf/text/WTFString.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
|
| index 7460ac18cfe83a0f960a9c98ada72ba51fb29ae9..0f61a94e18b30d4f7035dcd8fa59cedd5b0319d7 100644
|
| --- a/third_party/WebKit/Source/wtf/text/WTFString.h
|
| +++ b/third_party/WebKit/Source/wtf/text/WTFString.h
|
| @@ -408,7 +408,9 @@ class WTF_EXPORT String {
|
| length);
|
| }
|
|
|
| - bool containsOnlyASCII() const;
|
| + bool containsOnlyASCII() const {
|
| + return !m_impl || m_impl->containsOnlyASCII();
|
| + }
|
| bool containsOnlyLatin1() const;
|
| bool containsOnlyWhitespace() const {
|
| return !m_impl || m_impl->containsOnlyWhitespace();
|
| @@ -556,16 +558,6 @@ inline NSString* nsStringNilIfEmpty(const String& str) {
|
| }
|
| #endif
|
|
|
| -inline bool String::containsOnlyASCII() const {
|
| - if (isEmpty())
|
| - return true;
|
| -
|
| - if (is8Bit())
|
| - return charactersAreAllASCII(characters8(), m_impl->length());
|
| -
|
| - return charactersAreAllASCII(characters16(), m_impl->length());
|
| -}
|
| -
|
| WTF_EXPORT int codePointCompare(const String&, const String&);
|
|
|
| inline bool codePointCompareLessThan(const String& a, const String& b) {
|
|
|