Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp

Issue 2778983006: Make /deep/ as no-op and remove ::shadow in dynamic profile (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698