| Index: third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
|
| index 005c2255a5ae0585c07ee17f4c5802a17387773a..d127042cd17d1a1f833554d05b34d3746e94b0a8 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
|
| @@ -35,11 +35,17 @@ class CORE_EXPORT CSSTokenizer {
|
| CSSParserTokenRange tokenRange();
|
| unsigned tokenCount();
|
|
|
| + std::unique_ptr<Vector<String>> releaseEscapedStrings() {
|
| + return std::move(m_stringPool);
|
| + }
|
| +
|
| private:
|
| - void storeString(const String& string) { m_stringPool.append(string); }
|
| + void storeString(const String&);
|
| Vector<CSSParserToken, 32> m_tokens;
|
| - // We only allocate strings when escapes are used.
|
| - Vector<String> m_stringPool;
|
| +
|
| + // We only allocate strings when escapes are used. This member is lazily
|
| + // initialized.
|
| + std::unique_ptr<Vector<String>> m_stringPool;
|
| String m_string;
|
|
|
| friend class CSSTokenizer;
|
|
|