Bug 1318096 part 5. Remove XPCOM mozMatchesSelector. r=froydnj
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 17 Nov 2016 13:49:27 -0500
changeset 323220 11964097d033c148a7e70340fdc9faf537a9528c
parent 323219 7ca78018918e3aeb3ba6c6dd5e2fc46db9297d82
child 323221 0f66a6a676ef6a371460d44c0501fdc4f17c2090
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewersfroydnj
bugs1318096
milestone53.0a1
Bug 1318096 part 5. Remove XPCOM mozMatchesSelector. r=froydnj
dom/base/Element.h
dom/interfaces/core/nsIDOMElement.idl
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -1865,17 +1865,10 @@ NS_IMETHOD GetScrollLeftMax(int32_t* aSc
 {                                                                             \
   *aScrollLeftMax = Element::ScrollLeftMax();                                 \
   return NS_OK;                                                               \
 }                                                                             \
 NS_IMETHOD GetScrollTopMax(int32_t* aScrollTopMax) final override             \
 {                                                                             \
   *aScrollTopMax = Element::ScrollTopMax();                                   \
   return NS_OK;                                                               \
-}                                                                             \
-NS_IMETHOD MozMatchesSelector(const nsAString& selector,                      \
-                              bool* _retval) final override                   \
-{                                                                             \
-  mozilla::ErrorResult rv;                                                    \
-  *_retval = Element::Matches(selector, rv);                                  \
-  return rv.StealNSResult();                                                  \
 }
 #endif // mozilla_dom_Element_h__
--- a/dom/interfaces/core/nsIDOMElement.idl
+++ b/dom/interfaces/core/nsIDOMElement.idl
@@ -168,20 +168,9 @@ interface nsIDOMElement : nsIDOMNode
    */
   readonly attribute long             clientHeight;
 
   /* The maximum offset that the element can be scrolled to
      (i.e., the value that scrollLeft/scrollTop would be clamped to if they were
      set to arbitrarily large values. */
   readonly attribute long             scrollLeftMax;
   readonly attribute long             scrollTopMax;
-
-
-  // Selectors API
-  /**
-   * Returns whether this element would be selected by the given selector
-   * string.
-   *
-   * See <http://dev.w3.org/2006/webapi/selectors-api2/#matchesselector>
-   */
-  boolean mozMatchesSelector([Null(Stringify)] in DOMString selector);
-
 };