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

--HG--
extra : rebase_source : 9f713d954ec9f9a631c27656af12d9e125e56d9f
This commit is contained in:
Hiroyuki Ikezoe 2018-05-11 15:11:43 +09:00
Родитель 274ecb9460
Коммит 8272b80b6d
2 изменённых файлов: 0 добавлений и 25 удалений

Просмотреть файл

@ -3628,21 +3628,6 @@ nsDOMWindowUtils::DispatchEventToChromeOnly(EventTarget* aTarget,
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,

Просмотреть файл

@ -1697,16 +1697,6 @@ interface nsIDOMWindowUtils : nsISupports {
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