| Index: Source/core/css/SelectorChecker.cpp
|
| diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp
|
| index d6d28b8b1652a827056651b25262e28d8018a1bd..2c00bf76a04b3f20c12831e48353f83e3d97b7c2 100644
|
| --- a/Source/core/css/SelectorChecker.cpp
|
| +++ b/Source/core/css/SelectorChecker.cpp
|
| @@ -263,7 +263,7 @@ SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext& con
|
| case CSSSelector::ShadowPseudo:
|
| {
|
| // If we're in the same tree-scope as the scoping element, then following a shadow descendant combinator would escape that and thus the scope.
|
| - if (context.scope && &context.scope->treeScope() == &context.element->treeScope() && (context.behaviorAtBoundary & BoundaryBehaviorMask) != StaysWithinTreeScope)
|
| + if (context.scope && context.scope->treeScope() == context.element->treeScope() && (context.behaviorAtBoundary & BoundaryBehaviorMask) != StaysWithinTreeScope)
|
| return SelectorFailsCompletely;
|
| Element* shadowHostNode = context.element->shadowHost();
|
| if (!shadowHostNode)
|
|
|