Chromium Code Reviews| 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 ae3d78c6608c4ca89226a7272d245209d69698af..3acb1a1bd4a1259ee18a8f74daf71f1b367504a8 100644 |
| --- a/third_party/WebKit/Source/core/css/StyleSheetContents.h |
| +++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h |
| @@ -159,6 +159,11 @@ public: |
| String sourceMapURL() const { return m_sourceMapURL; } |
| + void takeEscapedStrings(std::unique_ptr<Vector<String>> strings) |
| + { |
| + m_escapedStrings.reset(strings.release()); |
| + } |
| + |
| DECLARE_TRACE(); |
| private: |
| @@ -182,6 +187,9 @@ private: |
| AtomicString m_defaultNamespace; |
| WeakMember<CSSStyleSheetResource> m_referencedFromResource; |
| + // Only initialized if using lazy parsing. Also referenced on the css resource. |
| + String m_sheetText; |
|
Timothy Loh
2016/09/27 05:15:45
Maybe nicer to put this next to the vector you're
Charlie Harrison
2016/09/27 13:22:01
Done.
|
| + |
| bool m_hasSyntacticallyValidCSSHeader : 1; |
| bool m_didLoadErrorOccur : 1; |
| bool m_isMutable : 1; |
| @@ -197,6 +205,10 @@ private: |
| 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; |
| }; |
| } // namespace blink |