Bug 1318096 part 1. Remove unused XPCOM querySelector(All) bits. r=froydnj

This commit is contained in:
Boris Zbarsky 2016-11-17 13:49:26 -05:00
Родитель 40c3163488
Коммит 0187a18084
8 изменённых файлов: 0 добавлений и 86 удалений

Просмотреть файл

@ -36,20 +36,6 @@ DocumentFragment::IsNodeOfType(uint32_t aFlags) const
return !(aFlags & ~(eCONTENT | eDOCUMENT_FRAGMENT)); return !(aFlags & ~(eCONTENT | eDOCUMENT_FRAGMENT));
} }
NS_IMETHODIMP
DocumentFragment::QuerySelector(const nsAString& aSelector,
nsIDOMElement **aReturn)
{
return nsINode::QuerySelector(aSelector, aReturn);
}
NS_IMETHODIMP
DocumentFragment::QuerySelectorAll(const nsAString& aSelector,
nsIDOMNodeList **aReturn)
{
return nsINode::QuerySelectorAll(aSelector, aReturn);
}
#ifdef DEBUG #ifdef DEBUG
void void
DocumentFragment::List(FILE* out, int32_t aIndent) const DocumentFragment::List(FILE* out, int32_t aIndent) const

Просмотреть файл

@ -1898,18 +1898,5 @@ NS_IMETHOD MozRequestPointerLock(void) final override \
{ \ { \
Element::RequestPointerLock(); \ Element::RequestPointerLock(); \
return NS_OK; \ return NS_OK; \
} \
using nsINode::QuerySelector; \
NS_IMETHOD QuerySelector(const nsAString& aSelector, \
nsIDOMElement **aReturn) final override \
{ \
return nsINode::QuerySelector(aSelector, aReturn); \
} \
using nsINode::QuerySelectorAll; \
NS_IMETHOD QuerySelectorAll(const nsAString& aSelector, \
nsIDOMNodeList **aReturn) final override \
{ \
return nsINode::QuerySelectorAll(aSelector, aReturn); \
} }
#endif // mozilla_dom_Element_h__ #endif // mozilla_dom_Element_h__

Просмотреть файл

@ -12061,18 +12061,6 @@ nsDocument::DocAddSizeOfExcludingThis(nsWindowSizes* aWindowSizes) const
// - many! // - many!
} }
NS_IMETHODIMP
nsDocument::QuerySelector(const nsAString& aSelector, nsIDOMElement **aReturn)
{
return nsINode::QuerySelector(aSelector, aReturn);
}
NS_IMETHODIMP
nsDocument::QuerySelectorAll(const nsAString& aSelector, nsIDOMNodeList **aReturn)
{
return nsINode::QuerySelectorAll(aSelector, aReturn);
}
already_AddRefed<nsIDocument> already_AddRefed<nsIDocument>
nsIDocument::Constructor(const GlobalObject& aGlobal, nsIDocument::Constructor(const GlobalObject& aGlobal,
ErrorResult& rv) ErrorResult& rv)

Просмотреть файл

@ -2952,27 +2952,6 @@ nsINode::QuerySelectorAll(const nsAString& aSelector, ErrorResult& aResult)
return contentList.forget(); return contentList.forget();
} }
nsresult
nsINode::QuerySelector(const nsAString& aSelector, nsIDOMElement **aReturn)
{
ErrorResult rv;
Element* result = nsINode::QuerySelector(aSelector, rv);
if (rv.Failed()) {
return rv.StealNSResult();
}
nsCOMPtr<nsIDOMElement> elt = do_QueryInterface(result);
elt.forget(aReturn);
return NS_OK;
}
nsresult
nsINode::QuerySelectorAll(const nsAString& aSelector, nsIDOMNodeList **aReturn)
{
ErrorResult rv;
*aReturn = nsINode::QuerySelectorAll(aSelector, rv).take();
return rv.StealNSResult();
}
Element* Element*
nsINode::GetElementById(const nsAString& aId) nsINode::GetElementById(const nsAString& aId)
{ {

Просмотреть файл

@ -1350,9 +1350,6 @@ public:
already_AddRefed<nsINodeList> QuerySelectorAll(const nsAString& aSelector, already_AddRefed<nsINodeList> QuerySelectorAll(const nsAString& aSelector,
mozilla::ErrorResult& aResult); mozilla::ErrorResult& aResult);
nsresult QuerySelector(const nsAString& aSelector, nsIDOMElement **aReturn);
nsresult QuerySelectorAll(const nsAString& aSelector, nsIDOMNodeList **aReturn);
protected: protected:
// nsIDocument overrides this with its own (faster) version. This // nsIDocument overrides this with its own (faster) version. This
// should really only be called for elements and document fragments. // should really only be called for elements and document fragments.

Просмотреть файл

@ -404,12 +404,4 @@ interface nsIDOMDocument : nsIDOMNode
* strict mode. (XML documents are always in strict mode.) * strict mode. (XML documents are always in strict mode.)
*/ */
readonly attribute DOMString compatMode; readonly attribute DOMString compatMode;
/**
* Return nodes that match a given CSS selector.
*
* @see <http://dev.w3.org/2006/webapi/selectors-api/>
*/
nsIDOMElement querySelector([Null(Stringify)] in DOMString selectors);
nsIDOMNodeList querySelectorAll([Null(Stringify)] in DOMString selectors);
}; };

Просмотреть файл

@ -17,11 +17,4 @@
[builtinclass, uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb)] [builtinclass, uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb)]
interface nsIDOMDocumentFragment : nsIDOMNode interface nsIDOMDocumentFragment : nsIDOMNode
{ {
/**
* Return nodes that match a given CSS selector.
*
* @see <http://dev.w3.org/2006/webapi/selectors-api/>
*/
nsIDOMElement querySelector([Null(Stringify)] in DOMString selectors);
nsIDOMNodeList querySelectorAll([Null(Stringify)] in DOMString selectors);
}; };

Просмотреть файл

@ -218,12 +218,4 @@ interface nsIDOMElement : nsIDOMNode
* @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html> * @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
*/ */
void mozRequestPointerLock(); void mozRequestPointerLock();
/**
* Return nodes that match a given CSS selector.
*
* @see <http://dev.w3.org/2006/webapi/selectors-api/>
*/
nsIDOMElement querySelector([Null(Stringify)] in DOMString selectors);
nsIDOMNodeList querySelectorAll([Null(Stringify)] in DOMString selectors);
}; };