Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Unified Diff: Source/core/html/HTMLContentElement.h

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLContentElement.h
diff --git a/Source/core/html/HTMLContentElement.h b/Source/core/html/HTMLContentElement.h
index 5ed3b18bdaa77cd19517403da0863fe4c15ff212..076974338d757b138c5ea16fdf49fa9aeeb96ea6 100644
--- a/Source/core/html/HTMLContentElement.h
+++ b/Source/core/html/HTMLContentElement.h
@@ -67,7 +67,7 @@ private:
bool validateSelect() const;
void parseSelect();
- bool matchSelector(const WillBeHeapVector<RawPtrWillBeMember<Node>, 32>& siblings, int nth) const;
+ bool matchSelector(Element&) const;
bool m_shouldParseSelect;
bool m_isValidSelector;
@@ -100,7 +100,7 @@ inline bool HTMLContentElement::canSelectNode(const WillBeHeapVector<RawPtrWillB
return false;
if (!siblings[nth]->isElementNode())
return false;
- return matchSelector(siblings, nth);
+ return matchSelector(*toElement(siblings[nth]));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698