Index: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
index 650714f44c4838913a743feefafe175f1f2a8703..22bd3fd725a646243259b4d707c803866bb011ff 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
@@ -254,6 +254,7 @@ void CSSParserImpl::ParseStyleSheet(const String& string, |
} |
CSSSelectorList CSSParserImpl::ParsePageSelector( |
+ const CSSParserContext& context, |
CSSParserTokenRange range, |
StyleSheetContents* style_sheet) { |
// We only support a small subset of the css-page spec. |
@@ -282,7 +283,7 @@ CSSSelectorList CSSParserImpl::ParsePageSelector( |
selector = CSSParserSelector::Create(); |
if (!pseudo.IsNull()) { |
selector->SetMatch(CSSSelector::kPagePseudoClass); |
- selector->UpdatePseudoType(pseudo.DeprecatedLower()); |
+ selector->UpdatePseudoType(pseudo.DeprecatedLower(), context); |
if (selector->GetPseudoType() == CSSSelector::kPseudoUnknown) |
return CSSSelectorList(); |
} |
@@ -733,7 +734,8 @@ StyleRuleKeyframes* CSSParserImpl::ConsumeKeyframesRule( |
StyleRulePage* CSSParserImpl::ConsumePageRule(CSSParserTokenRange prelude, |
CSSParserTokenRange block) { |
- CSSSelectorList selector_list = ParsePageSelector(prelude, style_sheet_); |
+ CSSSelectorList selector_list = |
+ ParsePageSelector(*context_, prelude, style_sheet_); |
if (!selector_list.IsValid()) |
return nullptr; // Parse error, invalid @page selector |