mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 14:27:30 +09:00
Bug 1438425 - Delete DocumentRenderer. r=jesup, a=RyanVM
It is unused. --HG-- extra : histedit_source : b7af9f250f0330f90547114184873ae9971f20fc
This commit is contained in:
parent
94a68d86a9
commit
a64b1808c0
15 changed files with 3 additions and 396 deletions
|
|
@ -22,7 +22,6 @@
|
|||
#include "mozilla/dom/indexedDB/PIndexedDBPermissionRequestChild.h"
|
||||
#include "mozilla/plugins/PluginWidgetChild.h"
|
||||
#include "mozilla/IMEStateManager.h"
|
||||
#include "mozilla/ipc/DocumentRendererChild.h"
|
||||
#include "mozilla/ipc/URIUtils.h"
|
||||
#include "mozilla/layers/APZChild.h"
|
||||
#include "mozilla/layers/APZCCallbackHelper.h"
|
||||
|
|
@ -2006,57 +2005,6 @@ TabChild::DeallocPDocAccessibleChild(a11y::PDocAccessibleChild* aChild)
|
|||
return true;
|
||||
}
|
||||
|
||||
PDocumentRendererChild*
|
||||
TabChild::AllocPDocumentRendererChild(const nsRect& documentRect,
|
||||
const mozilla::gfx::Matrix& transform,
|
||||
const nsString& bgcolor,
|
||||
const uint32_t& renderFlags,
|
||||
const bool& flushLayout,
|
||||
const nsIntSize& renderSize)
|
||||
{
|
||||
return new DocumentRendererChild();
|
||||
}
|
||||
|
||||
bool
|
||||
TabChild::DeallocPDocumentRendererChild(PDocumentRendererChild* actor)
|
||||
{
|
||||
delete actor;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
TabChild::RecvPDocumentRendererConstructor(PDocumentRendererChild* actor,
|
||||
const nsRect& documentRect,
|
||||
const mozilla::gfx::Matrix& transform,
|
||||
const nsString& bgcolor,
|
||||
const uint32_t& renderFlags,
|
||||
const bool& flushLayout,
|
||||
const nsIntSize& renderSize)
|
||||
{
|
||||
DocumentRendererChild *render = static_cast<DocumentRendererChild *>(actor);
|
||||
|
||||
nsCOMPtr<nsIWebBrowser> browser = do_QueryInterface(WebNavigation());
|
||||
if (!browser)
|
||||
return true; // silently ignore
|
||||
nsCOMPtr<mozIDOMWindowProxy> window;
|
||||
if (NS_FAILED(browser->GetContentDOMWindow(getter_AddRefs(window))) ||
|
||||
!window)
|
||||
{
|
||||
return true; // silently ignore
|
||||
}
|
||||
|
||||
nsCString data;
|
||||
bool ret = render->RenderDocument(nsPIDOMWindowOuter::From(window),
|
||||
documentRect, transform,
|
||||
bgcolor,
|
||||
renderFlags, flushLayout,
|
||||
renderSize, data);
|
||||
if (!ret)
|
||||
return true; // silently ignore
|
||||
|
||||
return PDocumentRendererChild::Send__delete__(actor, renderSize, data);
|
||||
}
|
||||
|
||||
PColorPickerChild*
|
||||
TabChild::AllocPColorPickerChild(const nsString&, const nsString&)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue