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
--- 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);