Index: Source/core/html/shadow/HTMLContentElement.cpp |
diff --git a/Source/core/html/shadow/HTMLContentElement.cpp b/Source/core/html/shadow/HTMLContentElement.cpp |
index 5f5554b82a2f16c71271802bf1664721ed3d2e98..f1f8c413b61248dd25771a17ea4055955e029cfa 100644 |
--- a/Source/core/html/shadow/HTMLContentElement.cpp |
+++ b/Source/core/html/shadow/HTMLContentElement.cpp |
@@ -67,7 +67,7 @@ void HTMLContentElement::parseSelect() |
{ |
ASSERT(m_shouldParseSelect); |
- CSSParser parser(document()); |
+ CSSParser parser(&document()); |
parser.parseSelector(m_select, m_selectorList); |
m_shouldParseSelect = false; |
m_isValidSelector = validateSelect(); |
@@ -109,7 +109,7 @@ bool HTMLContentElement::validateSelect() const |
static inline bool checkOneSelector(const CSSSelector* selector, const Vector<Node*>& siblings, int nth) |
{ |
Element* element = toElement(siblings[nth]); |
- SelectorChecker selectorChecker(element->document(), SelectorChecker::CollectingRules); |
+ SelectorChecker selectorChecker(&element->document(), SelectorChecker::CollectingRules); |
SelectorChecker::SelectorCheckingContext context(selector, element, SelectorChecker::VisitedMatchEnabled); |
ShadowDOMSiblingTraversalStrategy strategy(siblings, nth); |
PseudoId ignoreDynamicPseudo = NOPSEUDO; |