| Index: sky/engine/core/html/HTMLContentElement.cpp
|
| diff --git a/sky/engine/core/html/HTMLContentElement.cpp b/sky/engine/core/html/HTMLContentElement.cpp
|
| index 2c3a0cde8f3af935cb1a45a3d4ae0ef4c8431fbe..4797f3ea79c666942f2b5167c73006d7b44f973a 100644
|
| --- a/sky/engine/core/html/HTMLContentElement.cpp
|
| +++ b/sky/engine/core/html/HTMLContentElement.cpp
|
| @@ -110,7 +110,7 @@ bool HTMLContentElement::validateSelect() const
|
| static inline bool checkOneSelector(const CSSSelector& selector, const Vector<RawPtr<Node>, 32>& siblings, int nth)
|
| {
|
| Element* element = toElement(siblings[nth]);
|
| - SelectorChecker selectorChecker(element->document(), SelectorChecker::QueryingRules);
|
| + SelectorChecker selectorChecker;
|
| SelectorChecker::SelectorCheckingContext context(selector, element);
|
| return selectorChecker.match(context);
|
| }
|
|
|