| Index: Source/core/css/StyleSheetContents.cpp
|
| diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp
|
| index 8769973ac24db5e64a08a10153db03957ce0627b..ee5ab60b4c7438e7024c37c7ea3441c0f288c2c8 100644
|
| --- a/Source/core/css/StyleSheetContents.cpp
|
| +++ b/Source/core/css/StyleSheetContents.cpp
|
| @@ -290,7 +290,8 @@ void StyleSheetContents::parseAuthorStyleSheet(const CSSStyleSheetResource* cach
|
| m_sourceMapURL = response.httpHeaderField("X-SourceMap");
|
| }
|
|
|
| - CSSParserContext context(parserContext(), UseCounter::getFrom(this));
|
| + Document* singleOwnerDoc = singleOwnerDocument();
|
| + CSSParserContext context(parserContext(), singleOwnerDoc ? singleOwnerDoc->frame() : 0, UseCounter::getFrom(this));
|
| CSSParser::parseSheet(context, this, sheetText);
|
| }
|
|
|
| @@ -301,7 +302,8 @@ void StyleSheetContents::parseString(const String& sheetText)
|
|
|
| void StyleSheetContents::parseStringAtPosition(const String& sheetText, const TextPosition& startPosition)
|
| {
|
| - CSSParserContext context(parserContext(), UseCounter::getFrom(this));
|
| + Document* singleOwnerDoc = singleOwnerDocument();
|
| + CSSParserContext context(parserContext(), singleOwnerDoc ? singleOwnerDoc->frame() : 0, UseCounter::getFrom(this));
|
| CSSParser::parseSheet(context, this, sheetText);
|
| }
|
|
|
|
|