| Index: sky/engine/core/html/HTMLContentElement.cpp
|
| diff --git a/sky/engine/core/html/HTMLContentElement.cpp b/sky/engine/core/html/HTMLContentElement.cpp
|
| index ae9c76e8a81a398b2444b8a4b7ad75d9c479fd3b..3491807f422a3a5da3b8c17fc09f5305e7c08b41 100644
|
| --- a/sky/engine/core/html/HTMLContentElement.cpp
|
| +++ b/sky/engine/core/html/HTMLContentElement.cpp
|
| @@ -110,9 +110,8 @@ bool HTMLContentElement::validateSelect() const
|
| bool HTMLContentElement::matchSelector(const Vector<RawPtr<Node>, 32>& siblings, int nth) const
|
| {
|
| for (const CSSSelector* selector = selectorList().first(); selector; selector = CSSSelectorList::next(*selector)) {
|
| - Element* element = toElement(siblings[nth]);
|
| - SelectorChecker checker(*element);
|
| - if (checker.match(*selector, element))
|
| + SelectorChecker checker(toElement(*siblings[nth]));
|
| + if (checker.match(*selector))
|
| return true;
|
| }
|
| return false;
|
|
|