| Index: Source/core/css/parser/CSSParserMode.h
|
| diff --git a/Source/core/css/parser/CSSParserMode.h b/Source/core/css/parser/CSSParserMode.h
|
| index 811f445055ac004597cf4c62cab6a4c009f7bdad..2efe81ad4f19e4f66a64953c901f665f401b4bde 100644
|
| --- a/Source/core/css/parser/CSSParserMode.h
|
| +++ b/Source/core/css/parser/CSSParserMode.h
|
| @@ -39,6 +39,7 @@
|
| namespace blink {
|
|
|
| class Document;
|
| +class LocalFrame;
|
|
|
| // Must not grow beyond 3 bits, due to packing in StylePropertySet.
|
| enum CSSParserMode {
|
| @@ -92,7 +93,8 @@ public:
|
| CSSParserContext(const Document&, UseCounter*, const KURL& baseURL = KURL(), const String& charset = emptyString());
|
| // FIXME: This constructor shouldn't exist if we properly piped the UseCounter through the CSS
|
| // subsystem. Currently the UseCounter life time is too crazy and we need a way to override it.
|
| - CSSParserContext(const CSSParserContext&, UseCounter*);
|
| + CSSParserContext(const CSSParserContext&, LocalFrame*, UseCounter*);
|
| + ~CSSParserContext();
|
|
|
| bool operator==(const CSSParserContext&) const;
|
| bool operator!=(const CSSParserContext& other) const { return !(*this == other); }
|
| @@ -117,6 +119,7 @@ public:
|
|
|
| KURL completeURL(const String& url) const;
|
|
|
| + LocalFrame* frame() const { return m_frame.get(); } // may be null
|
| UseCounter* useCounter() const { return m_useCounter; }
|
|
|
| ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy() const { return m_shouldCheckContentSecurityPolicy; }
|
| @@ -130,6 +133,7 @@ private:
|
| bool m_useLegacyBackgroundSizeShorthandBehavior;
|
| ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy;
|
|
|
| + RefPtrWillBePersistent<LocalFrame> m_frame;
|
| UseCounter* m_useCounter;
|
| };
|
|
|
|
|