Index: third_party/WebKit/Source/core/css/CSSStyleRule.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp |
index 1b9d4fb640b95e111981dbe01eb0f94a922f065c..cf2d06ae8c4f8568e36a3e3a9a8e40911e410b4e 100644 |
--- a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp |
@@ -95,7 +95,7 @@ String CSSStyleRule::selectorText() const |
void CSSStyleRule::setSelectorText(const String& selectorText) |
{ |
CSSParserContext context(parserContext(), 0); |
- CSSSelectorList selectorList = CSSParser::parseSelector(context, selectorText); |
+ CSSSelectorList selectorList = CSSParser::parseSelector(context, parentStyleSheet() ? parentStyleSheet()->contents() : nullptr, selectorText); |
if (!selectorList.isValid()) |
return; |