| Index: third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
|
| index e7e118265a4a49d8dbe38de8d059dec046fe99f3..861f2397f6679c581a02352849133e53b2506e14 100644
|
| --- a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
|
| @@ -151,9 +151,10 @@ void CSSSelectorWatch::watchCSSSelectors(const Vector<String>& selectors) {
|
| StylePropertySet* callbackPropertySet =
|
| ImmutableStylePropertySet::create(nullptr, 0, UASheetMode);
|
|
|
| + CSSParserContext* context = new CSSParserContext(UASheetMode);
|
| for (const auto& selector : selectors) {
|
| - CSSSelectorList selectorList = CSSParser::parseSelector(
|
| - CSSParserContext(UASheetMode, nullptr), nullptr, selector);
|
| + CSSSelectorList selectorList =
|
| + CSSParser::parseSelector(context, nullptr, selector);
|
| if (!selectorList.isValid())
|
| continue;
|
|
|
|
|