| Index: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
|
| index df48a8857ffeb417af21c52c59f72f23d4df8a2d..729f3c9cc010bed0ef9cd4ffa5d1a36ae985d450 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
|
| @@ -442,7 +442,7 @@
|
|
|
| AtomicString value = token.Value().ToAtomicString().LowerASCII();
|
| bool has_arguments = token.GetType() == kFunctionToken;
|
| - selector->UpdatePseudoType(value, has_arguments);
|
| + selector->UpdatePseudoType(value, *context_, has_arguments);
|
|
|
| if (!RuntimeEnabledFeatures::cssSelectorsFocusWithinEnabled() &&
|
| selector->GetPseudoType() == CSSSelector::kPseudoFocusWithin)
|
| @@ -582,7 +582,8 @@
|
| const CSSParserToken& slash = range.ConsumeIncludingWhitespace();
|
| if (slash.GetType() != kDelimiterToken || slash.Delimiter() != '/')
|
| failed_parsing_ = true;
|
| - return CSSSelector::kShadowDeep;
|
| + return context_->IsDynamicProfile() ? CSSSelector::kShadowDeepAsDescendant
|
| + : CSSSelector::kShadowDeep;
|
| }
|
|
|
| default:
|
|
|