Bug 1452329. Remove nsIDOMXMLDocument. r=mystor

MozReview-Commit-ID: LwbVo7Fx1SQ
This commit is contained in:
Boris Zbarsky 2018-04-09 16:30:33 -04:00
parent eb5f28a236
commit c81f762d32
6 changed files with 3 additions and 30 deletions

View File

@ -14,7 +14,6 @@ XPIDL_SOURCES += [
'nsIDOMNode.idl',
'nsIDOMNodeList.idl',
'nsIDOMNSEditableElement.idl',
'nsIDOMXMLDocument.idl',
]
XPIDL_MODULE = 'dom_core'

View File

@ -1,15 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
// The only reason this interface still exists is that we have addon and Firefox
// code QIing to it and using it for instanceof via Components.interfaces, and
// the interface needs to exist in order for the shim stuff in
// xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp to work.
[uuid(89ab39cb-c568-4d85-bd34-306d5cd5164d)]
interface nsIDOMXMLDocument : nsISupports
{
};

View File

@ -259,9 +259,6 @@ XMLDocument::~XMLDocument()
mLoopingForSyncLoad = false;
}
// QueryInterface implementation for XMLDocument
NS_IMPL_ISUPPORTS_INHERITED(XMLDocument, nsDocument, nsIDOMXMLDocument)
nsresult
XMLDocument::Init()
{

View File

@ -10,7 +10,6 @@
#include "mozilla/Attributes.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "nsDocument.h"
#include "nsIDOMXMLDocument.h"
#include "nsIScriptContext.h"
class nsIURI;
@ -19,13 +18,12 @@ class nsIChannel;
namespace mozilla {
namespace dom {
class XMLDocument : public nsDocument,
public nsIDOMXMLDocument
class XMLDocument : public nsDocument
{
public:
explicit XMLDocument(const char* aContentType = "application/xml");
NS_DECL_ISUPPORTS_INHERITED
NS_INLINE_DECL_REFCOUNTING_INHERITED(XMLDocument, nsDocument)
virtual void Reset(nsIChannel* aChannel, nsILoadGroup* aLoadGroup) override;
virtual void ResetToURI(nsIURI *aURI, nsILoadGroup *aLoadGroup,
@ -46,9 +44,6 @@ public:
virtual void EndLoad() override;
// nsIDOMXMLDocument
NS_DECL_NSIDOMXMLDOCUMENT
virtual nsresult Init() override;
virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,

View File

@ -300,7 +300,7 @@ var PageThumbUtils = {
// FIXME Bug 720575 - Don't capture thumbnails for SVG or XML documents as
// that currently regresses Talos SVG tests.
if (aDocument instanceof Ci.nsIDOMXMLDocument) {
if (ChromeUtils.getClassName(aDocument) === "XMLDocument") {
return false;
}

View File

@ -20,7 +20,6 @@
#include "nsIDOMOfflineResourceList.h"
#include "nsIDOMParser.h"
#include "nsIDOMRange.h"
#include "nsIDOMXMLDocument.h"
#include "nsIListBoxObject.h"
#include "nsIMessageManager.h"
#include "nsISelection.h"
@ -61,7 +60,6 @@
#include "mozilla/dom/SVGElementBinding.h"
#include "mozilla/dom/TimeEventBinding.h"
#include "mozilla/dom/TreeBoxObjectBinding.h"
#include "mozilla/dom/XMLDocumentBinding.h"
#include "mozilla/dom/XULDocumentBinding.h"
using namespace mozilla;
@ -136,7 +134,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMParser, DOMParser),
DEFINE_SHIM(Range),
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsITreeBoxObject, TreeBoxObject),
DEFINE_SHIM(XMLDocument),
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsISelection, Selection),
};