зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504708 - Remove unused nsIDOMWindowUtils::RenderDocument. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D10905 --HG-- extra : rebase_source : be9dae5e981b0b211b8e201e69e4ec4c25fbf375 extra : amend_source : 7c40758c5b99ccf47fd1eae28cc8e9e559c2dda6 extra : source : e8530af895573993c962f452a67b76a7a258f04f
This commit is contained in:
Родитель
1918c4796a
Коммит
3629eceb88
|
@ -2796,23 +2796,6 @@ nsDOMWindowUtils::GetUnanimatedComputedStyle(Element* aElement,
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
|
||||||
nsDOMWindowUtils::RenderDocument(const nsRect& aRect,
|
|
||||||
uint32_t aFlags,
|
|
||||||
nscolor aBackgroundColor,
|
|
||||||
gfxContext* aThebesContext)
|
|
||||||
{
|
|
||||||
nsCOMPtr<nsIDocument> doc = GetDocument();
|
|
||||||
NS_ENSURE_TRUE(doc, NS_ERROR_FAILURE);
|
|
||||||
|
|
||||||
// Get Primary Shell
|
|
||||||
nsCOMPtr<nsIPresShell> presShell = doc->GetShell();
|
|
||||||
NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);
|
|
||||||
|
|
||||||
// Render Document
|
|
||||||
return presShell->RenderDocument(aRect, aFlags, aBackgroundColor, aThebesContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsDOMWindowUtils::GetDisplayDPI(float *aDPI)
|
nsDOMWindowUtils::GetDisplayDPI(float *aDPI)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1357,11 +1357,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||||
*/
|
*/
|
||||||
readonly attribute Element containerElement;
|
readonly attribute Element containerElement;
|
||||||
|
|
||||||
[noscript] void RenderDocument(in nsConstRect aRect,
|
|
||||||
in uint32_t aFlags,
|
|
||||||
in nscolor aBackgroundColor,
|
|
||||||
in gfxContext aThebesContext);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* advanceTimeAndRefresh allows the caller to take over the refresh
|
* advanceTimeAndRefresh allows the caller to take over the refresh
|
||||||
* driver timing for a window. A call to advanceTimeAndRefresh does
|
* driver timing for a window. A call to advanceTimeAndRefresh does
|
||||||
|
|
Загрузка…
Ссылка в новой задаче