зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1553012 - Drop nsIDOMWindowUtils.redraw. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D36135 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
45350055b1
Коммит
57de429e1f
|
@ -343,32 +343,6 @@ nsDOMWindowUtils::GetDocumentMetadata(const nsAString& aName,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::Redraw(uint32_t aCount, uint32_t* aDurationOut) {
|
||||
if (aCount == 0) aCount = 1;
|
||||
|
||||
if (PresShell* presShell = GetPresShell()) {
|
||||
nsIFrame* rootFrame = presShell->GetRootFrame();
|
||||
|
||||
if (rootFrame) {
|
||||
PRIntervalTime iStart = PR_IntervalNow();
|
||||
|
||||
for (uint32_t i = 0; i < aCount; i++) rootFrame->InvalidateFrame();
|
||||
|
||||
#if defined(MOZ_X11) && defined(MOZ_WIDGET_GTK)
|
||||
if (!gfxPlatform::IsHeadless()) {
|
||||
XSync(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), False);
|
||||
}
|
||||
#endif
|
||||
|
||||
*aDurationOut = PR_IntervalToMilliseconds(PR_IntervalNow() - iStart);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::UpdateLayerTree() {
|
||||
if (RefPtr<PresShell> presShell = GetPresShell()) {
|
||||
|
|
|
@ -95,14 +95,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
|||
*/
|
||||
AString getDocumentMetadata(in AString aName);
|
||||
|
||||
/**
|
||||
* Force an immediate redraw of this window. The parameter specifies
|
||||
* the number of times to redraw, and the return value is the length,
|
||||
* in milliseconds, that the redraws took. If aCount is not specified
|
||||
* or is 0, it is taken to be 1.
|
||||
*/
|
||||
unsigned long redraw([optional] in unsigned long aCount);
|
||||
|
||||
/**
|
||||
* Force a synchronous layer transaction for this window if necessary.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче