Bug 1460807 - Drop DOMWindowUtils.requestCompositorProperty. r=kats
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Fri, 11 May 2018 15:11:43 +0900
changeset 794448 b4f169b4f95add889de45cd550354ffffbbb0814
parent 794447 8def71624ff163b0e9086776b3424086ea790824
child 794449 d405a421953fdef8511a992eeabfdf6cb0a3391f
push id109697
push userbmo:sledru@mozilla.com
push dateSat, 12 May 2018 10:04:34 +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);