| Index: third_party/WebKit/Source/core/css/StyleSheetContents.h
|
| diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.h b/third_party/WebKit/Source/core/css/StyleSheetContents.h
|
| index af8aad317e489eb079ee850efdd439f8f04e0e80..7b1a903564cb881ad8a05de849124834415ae2cf 100644
|
| --- a/third_party/WebKit/Source/core/css/StyleSheetContents.h
|
| +++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h
|
| @@ -31,6 +31,7 @@
|
| #include "wtf/text/AtomicStringHash.h"
|
| #include "wtf/text/StringHash.h"
|
| #include "wtf/text/TextPosition.h"
|
| +#include "core/css/parser/CSSTokenizer.h"
|
|
|
| namespace blink {
|
|
|
| @@ -172,6 +173,12 @@ class CORE_EXPORT StyleSheetContents
|
|
|
| String sourceMapURL() const { return m_sourceMapURL; }
|
|
|
| + void takeEscapedStrings(std::unique_ptr<Vector<String>> strings) {
|
| + m_escapedStrings.reset(strings.release());
|
| + }
|
| +
|
| + CSSTokenizer::Scope m_scope;
|
| +
|
| DECLARE_TRACE();
|
|
|
| private:
|
| @@ -212,6 +219,14 @@ class CORE_EXPORT StyleSheetContents
|
|
|
| Member<RuleSet> m_ruleSet;
|
| String m_sourceMapURL;
|
| +
|
| + // Used for retaining references to escaped strings for lazy parsing. For
|
| + // non-lazy parsing these are only retained in the CSSTokenizer::Scope.
|
| + std::unique_ptr<Vector<String>> m_escapedStrings;
|
| +
|
| + // Only initialized if using lazy parsing. Also referenced on the css
|
| + // resource.
|
| + String m_sheetText;
|
| };
|
|
|
| } // namespace blink
|
|
|