Bug 1460807 - Drop DOMWindowUtils.requestCompositorProperty. r?kats draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Fri, 11 May 2018 15:11:43 +0900
changeset 793985 012eff1b085193f12fcbf9e9311140bd018e9db5
parent 793719 17db33b6a124422d43a9f518bea1bc62a698126b
push id109557
push userhikezoe@mozilla.com
push dateFri, 11 May 2018 06:12:01 +0000
reviewerskats
bugs1460807, 1057088, 1352151
milestone62.0a1
Bug 1460807 - Drop DOMWindowUtils.requestCompositorProperty. r?kats The function was introduced in bug 1057088, and has been unused since bug 1352151. MozReview-Commit-ID: 4Nfvj4gGdSY
dom/base/nsDOMWindowUtils.cpp
dom/interfaces/base/nsIDOMWindowUtils.idl
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -3624,31 +3624,16 @@ nsDOMWindowUtils::DispatchEventToChromeO
   NS_ENSURE_STATE(aTarget && aEvent);
   aEvent->WidgetEventPtr()->mFlags.mOnlyChromeDispatch = true;
   *aRetVal = aTarget->
     DispatchEvent(*aEvent, CallerType::System, IgnoreErrors());
   return NS_OK;
 }
 
 NS_IMETHODIMP
-nsDOMWindowUtils::RequestCompositorProperty(const nsAString& property,
-                                            float* aResult)
-{
-  if (nsIWidget* widget = GetWidget()) {
-    mozilla::layers::LayerManager* manager = widget->GetLayerManager();
-    if (manager) {
-      *aResult = manager->RequestProperty(property);
-      return NS_OK;
-    }
-  }
-
-  return NS_ERROR_NOT_AVAILABLE;
-}
-
-NS_IMETHODIMP
 nsDOMWindowUtils::GetOMTAStyle(Element* aElement,
                                const nsAString& aProperty,
                                const nsAString& aPseudoElement,
                                nsAString& aResult)
 {
   if (!aElement) {
     return NS_ERROR_INVALID_ARG;
   }
--- a/dom/interfaces/base/nsIDOMWindowUtils.idl
+++ b/dom/interfaces/base/nsIDOMWindowUtils.idl
@@ -1693,26 +1693,16 @@ interface nsIDOMWindowUtils : nsISupport
    * Returns the value of a given property animated on the compositor thread.
    * If the property is NOT currently being animated on the compositor thread,
    * returns an empty string.
    */
   AString getOMTAStyle(in Element aElement, in AString aProperty,
                        [optional] in AString aPseudoElement);
 
   /**
-   * Special function that gets a property syncronously from the last composite
-   * that occured.
-   *
-   * Supported properties:
-   *   "overdraw": Report a percentage between 0 and 999 indicate how many times
-   *               each pixels on the destination window have been touched.
-   */
-  float requestCompositorProperty(in AString aProperty);
-
-  /**
    * If aHandlingInput is true, this informs the event state manager that
    * we're handling user input. Otherwise, this is a no-op (as by default
    * we're not handling user input).
    * Remember to call destruct() on the return value!
    * See also nsIDOMWindowUtils::isHandlingUserInput.
    */
   nsIJSRAIIHelper setHandlingUserInput(in boolean aHandlingInput);