| Index: third_party/WebKit/Source/core/css/parser/CSSParserString.h
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserString.h b/third_party/WebKit/Source/core/css/parser/CSSParserString.h
|
| index f3434ab6c590dd4263beae72eeb018389f09ae9e..7ffb776f474f2f9d06f8ecb73d6d6df3b1a64c4d 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSParserString.h
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSParserString.h
|
| @@ -90,6 +90,14 @@ struct CSSParserString {
|
| return str[length()] == '\0';
|
| }
|
|
|
| + template<unsigned matchLength>
|
| + bool equalIgnoringASCIICase(const char (&match)[matchLength]) const
|
| + {
|
| + if (matchLength - 1 != length())
|
| + return false;
|
| + return is8Bit() ? WTF::equalIgnoringASCIICase(match, characters8(), length()) : WTF::equalIgnoringASCIICase(match, characters16(), length());
|
| + }
|
| +
|
| operator String() const { return is8Bit() ? String(m_data.characters8, m_length) : StringImpl::create8BitIfPossible(m_data.characters16, m_length); }
|
| operator AtomicString() const { return is8Bit() ? AtomicString(m_data.characters8, m_length) : AtomicString(m_data.characters16, m_length); }
|
|
|
|
|