Index: Source/core/css/resolver/StyleResolver.h |
diff --git a/Source/core/css/resolver/StyleResolver.h b/Source/core/css/resolver/StyleResolver.h |
index fe3ff2063b5fbb0be7350679d61b13bc53853f4f..6ea0393e66aa27845eebc01c79318f41996e84ef 100644 |
--- a/Source/core/css/resolver/StyleResolver.h |
+++ b/Source/core/css/resolver/StyleResolver.h |
@@ -339,8 +339,8 @@ inline bool checkRegionSelector(const CSSSelector* regionSelector, Element* regi |
return false; |
SelectorChecker selectorChecker(regionElement->document(), SelectorChecker::QueryingRules); |
- for (const CSSSelector* s = regionSelector; s; s = CSSSelectorList::next(s)) { |
- SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regionElement, SelectorChecker::VisitedMatchDisabled); |
+ for (const CSSSelector* s = regionSelector; s; s = CSSSelectorList::next(*s)) { |
+ SelectorChecker::SelectorCheckingContext selectorCheckingContext(*s, regionElement, SelectorChecker::VisitedMatchDisabled); |
if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
return true; |
} |