Bug 1318096 part 5. Remove XPCOM mozMatchesSelector. r=froydnj
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 17 Nov 2016 13:49:27 -0500
changeset 323075 11964097d033c148a7e70340fdc9faf537a9528c
parent 323074 7ca78018918e3aeb3ba6c6dd5e2fc46db9297d82
child 323076 0f66a6a676ef6a371460d44c0501fdc4f17c2090
push id84045
push userbzbarsky@mozilla.com
push dateThu, 17 Nov 2016 18:49:45 +0000
treeherdermozilla-inbound@4d5f785bc4b4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1318096
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);
-
 };