| Index: Source/core/dom/SelectorQuery.cpp
|
| diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp
|
| index 6e433045818d8772d7b106c745b2117a7bdbadcf..f93ac10ef86dfe1a2511fae3c6ecabd5a4a7c07d 100644
|
| --- a/Source/core/dom/SelectorQuery.cpp
|
| +++ b/Source/core/dom/SelectorQuery.cpp
|
| @@ -51,9 +51,9 @@ struct SingleElementSelectorQueryTrait {
|
| };
|
|
|
| struct AllElementsSelectorQueryTrait {
|
| - typedef WillBeHeapVector<RefPtrWillBeMember<Node> > OutputType;
|
| + typedef WillBeHeapVector<RefPtrWillBeMember<Element> > OutputType;
|
| static const bool shouldOnlyMatchFirstElement = false;
|
| - ALWAYS_INLINE static void appendElement(OutputType& output, Node& element)
|
| + ALWAYS_INLINE static void appendElement(OutputType& output, Element& element)
|
| {
|
| output.append(&element);
|
| }
|
| @@ -136,11 +136,11 @@ bool SelectorDataList::matches(Element& targetElement) const
|
| return false;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<StaticNodeList> SelectorDataList::queryAll(ContainerNode& rootNode) const
|
| +PassRefPtrWillBeRawPtr<StaticElementList> SelectorDataList::queryAll(ContainerNode& rootNode) const
|
| {
|
| - WillBeHeapVector<RefPtrWillBeMember<Node> > result;
|
| + WillBeHeapVector<RefPtrWillBeMember<Element> > result;
|
| execute<AllElementsSelectorQueryTrait>(rootNode, result);
|
| - return StaticNodeList::adopt(result);
|
| + return StaticElementList::adopt(result);
|
| }
|
|
|
| PassRefPtrWillBeRawPtr<Element> SelectorDataList::queryFirst(ContainerNode& rootNode) const
|
| @@ -482,7 +482,7 @@ bool SelectorQuery::matches(Element& element) const
|
| return m_selectors.matches(element);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<StaticNodeList> SelectorQuery::queryAll(ContainerNode& rootNode) const
|
| +PassRefPtrWillBeRawPtr<StaticElementList> SelectorQuery::queryAll(ContainerNode& rootNode) const
|
| {
|
| return m_selectors.queryAll(rootNode);
|
| }
|
|
|