Bug 1318096 part 2. Remove the unused XPCOM pointerlock API. r=froydnj
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 17 Nov 2016 13:49:27 -0500
changeset 323072 39c74224241118918180b890fa47af54588a240e
parent 323071 d73246f35fb2fb567d1091bb2db313b044272dad
child 323073 7c6f51d784da77996a7e7f776818bb89857b490a
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 2. Remove the unused XPCOM pointerlock API. r=froydnj
dom/base/Element.h
dom/base/nsDocument.cpp
dom/interfaces/core/nsIDOMDocument.idl
dom/interfaces/core/nsIDOMElement.idl
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -1888,15 +1888,10 @@ NS_IMETHOD ReleaseCapture(void) final ov
   Element::ReleaseCapture();                                                  \
   return NS_OK;                                                               \
 }                                                                             \
 NS_IMETHOD MozRequestFullScreen(void) final override                          \
 {                                                                             \
   mozilla::ErrorResult rv;                                                    \
   Element::RequestFullscreen(rv);                                    \
   return rv.StealNSResult();                                                  \
-}                                                                             \
-NS_IMETHOD MozRequestPointerLock(void) final override                         \
-{                                                                             \
-  Element::RequestPointerLock();                                              \
-  return NS_OK;                                                               \
 }
 #endif // mozilla_dom_Element_h__
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -11768,32 +11768,16 @@ nsDocument::UnlockPointer(nsIDocument* a
 }
 
 void
 nsIDocument::UnlockPointer(nsIDocument* aDoc)
 {
   nsDocument::UnlockPointer(aDoc);
 }
 
-NS_IMETHODIMP
-nsDocument::MozExitPointerLock()
-{
-  nsIDocument::ExitPointerLock();
-  return NS_OK;
-}
-
-NS_IMETHODIMP
-nsDocument::GetMozPointerLockElement(nsIDOMElement** aPointerLockedElement)
-{
-  Element* el = nsIDocument::GetPointerLockElement();
-  nsCOMPtr<nsIDOMElement> retval = do_QueryInterface(el);
-  retval.forget(aPointerLockedElement);
-  return NS_OK;
-}
-
 Element*
 nsIDocument::GetPointerLockElement()
 {
   nsCOMPtr<Element> pointerLockedElement =
     do_QueryReferent(EventStateManager::sPointerLockedElement);
   if (!pointerLockedElement) {
     return nullptr;
   }
--- a/dom/interfaces/core/nsIDOMDocument.idl
+++ b/dom/interfaces/core/nsIDOMDocument.idl
@@ -363,42 +363,27 @@ interface nsIDOMDocument : nsIDOMNode
    * plugins are present, and all ancestor documents have the
    * allowfullscreen attribute set.
    *
    * @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
    */
   readonly attribute boolean mozFullScreenEnabled;
 
   /**
-   * The element to which the mouse pointer is locked, if any, as per the
-   * DOM pointer lock api.
-   *
-   * @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
-   */
-  readonly attribute nsIDOMElement mozPointerLockElement;
-
-  /**
    * Retrieve the location of the caret position (DOM node and character
    * offset within that node), given a point.
    *
    * @param x Horizontal point at which to determine the caret position, in
    *          page coordinates.
    * @param y Vertical point at which to determine the caret position, in
    *          page coordinates.
    */
   nsISupports /* CaretPosition */ caretPositionFromPoint(in float x, in float y);
 
   /**
-   * Exit pointer is lock if locked, as per the DOM pointer lock api.
-   *
-   * @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
-   */
-  void mozExitPointerLock();
-
-  /**
    * Visibility API implementation.
    */
   readonly attribute boolean hidden;
   readonly attribute DOMString visibilityState;
 
   /**
    * Returns "BackCompat" if we're in quirks mode or "CSS1Compat" if we're in
    * strict mode.  (XML documents are always in strict mode.)
--- a/dom/interfaces/core/nsIDOMElement.idl
+++ b/dom/interfaces/core/nsIDOMElement.idl
@@ -205,17 +205,9 @@ interface nsIDOMElement : nsIDOMNode
   // Mozilla extensions
   /**
    * Requests that this element be made the full-screen element, as per the DOM
    * full-screen api.
    *
    * @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
    */
   void mozRequestFullScreen();
-
-  /**
-   * Requests that this element be made the pointer-locked element, as per the DOM
-   * pointer lock api.
-   *
-   * @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
-   */
-  void mozRequestPointerLock();
 };