Skip to content

Commit

Permalink
Bug 1460735 part 2. Remove nsIDOMDocument. r=qdot
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky committed May 29, 2018
1 parent 2c0c1f8 commit aecc401
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 41 deletions.
8 changes: 4 additions & 4 deletions accessible/interfaces/msaa/ISimpleDOMNode.idl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cpp_quote("//")
cpp_quote("// computedStyle( ")
cpp_quote("// /* [in] */ unsigned short maxStyleProperties,")
cpp_quote("// /* [out] */ unsigned short *numStyleProperties, ")
cpp_quote("// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes")
cpp_quote("// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes")
cpp_quote("// /* [out] */ BSTR *styleProperties, ")
cpp_quote("// /* [out] */ BSTR *styleValues);")
cpp_quote("// ---------------------------------------------------------------------------------------------------=")
Expand All @@ -52,7 +52,7 @@ cpp_quote("// useAlternateView=TRUE: properties for media types set w/ nsIDOMSi
cpp_quote("//")
cpp_quote("// computedStyleForProperties( ")
cpp_quote("// /* [in] */ unsigned short numStyleProperties, ")
cpp_quote("// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes")
cpp_quote("// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes")
cpp_quote("// /* [in] */ BSTR *styleProperties, ")
cpp_quote("// /* [out] */ BSTR *styleValues);")
cpp_quote("// ---------------------------------------------------------------------------------------------------=")
Expand Down Expand Up @@ -141,15 +141,15 @@ interface ISimpleDOMNode : IUnknown

[propget] HRESULT computedStyle(
[in] unsigned short maxStyleProperties,
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleProperties,
[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR *styleValues,
[out, retval] unsigned short *numStyleProperties
);

[propget] HRESULT computedStyleForProperties(
[in] unsigned short numStyleProperties,
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes
[in] boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
[in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleProperties,
[out, retval, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR *styleValues
);
Expand Down
7 changes: 0 additions & 7 deletions docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
#include "nsIDocShellTreeOwner.h"
#include "nsIDocument.h"
#include "nsIDocumentLoaderFactory.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMStorage.h"
#include "nsIDOMWindow.h"
Expand Down Expand Up @@ -552,12 +551,6 @@ nsDocShell::GetInterface(const nsIID& aIID, void** aSink)
aIID.Equals(NS_GET_IID(nsIDOMWindow))) &&
NS_SUCCEEDED(EnsureScriptEnvironment())) {
return mScriptGlobal->QueryInterface(aIID, aSink);
} else if (aIID.Equals(NS_GET_IID(nsIDOMDocument)) &&
NS_SUCCEEDED(EnsureContentViewer())) {
nsCOMPtr<nsIDOMDocument> doc =
do_QueryInterface(mContentViewer->GetDocument());
doc.forget(aSink);
return *aSink ? NS_OK : NS_NOINTERFACE;
} else if (aIID.Equals(NS_GET_IID(nsIDocument)) &&
NS_SUCCEEDED(EnsureContentViewer())) {
nsCOMPtr<nsIDocument> doc = mContentViewer->GetDocument();
Expand Down
1 change: 0 additions & 1 deletion dom/base/nsDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,6 @@ NS_INTERFACE_TABLE_HEAD(nsDocument)
NS_INTERFACE_TABLE_ENTRY_AMBIGUOUS(nsDocument, nsISupports, nsINode)
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsINode)
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDocument)
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMDocument)
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIDOMNode)
NS_INTERFACE_TABLE_ENTRY(nsDocument, nsIScriptObjectPrincipal)
NS_INTERFACE_TABLE_ENTRY(nsDocument, mozilla::dom::EventTarget)
Expand Down
4 changes: 2 additions & 2 deletions dom/base/nsDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "nsWeakPtr.h"
#include "nsTArray.h"
#include "nsIdentifierMapEntry.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsStubDocumentObserver.h"
#include "nsIScriptGlobalObject.h"
#include "nsIContent.h"
Expand Down Expand Up @@ -130,7 +130,7 @@ class nsOnloadBlocker final : public nsIRequest

// Base class for our document implementations.
class nsDocument : public nsIDocument,
public nsIDOMDocument,
public nsIDOMNode,
public nsSupportsWeakReference,
public nsIScriptObjectPrincipal,
public nsIRadioGroupContainer,
Expand Down
1 change: 0 additions & 1 deletion dom/interfaces/base/domstubs.idl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ typedef double DOMHighResTimeStamp;
typedef unsigned long long nsViewID;

// Core
interface nsIDOMDocument;
interface nsIDOMNode;

// Needed for raises() in our IDL
Expand Down
1 change: 0 additions & 1 deletion dom/interfaces/core/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ with Files("**"):
BUG_COMPONENT = ("Core", "DOM")

XPIDL_SOURCES += [
'nsIDOMDocument.idl',
'nsIDOMNode.idl',
'nsIDOMNSEditableElement.idl',
]
Expand Down
24 changes: 0 additions & 24 deletions dom/interfaces/core/nsIDOMDocument.idl

This file was deleted.

2 changes: 1 addition & 1 deletion dom/webidl/Document.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ partial interface Document {
[Throws, Func="IsChromeOrXBL", NeedsSubjectPrincipal]
void loadBindingDocument(DOMString documentURL);

// nsIDOMDocumentTouch
// Touch bits
// XXXbz I can't find the sane spec for this stuff, so just cribbing
// from our xpidl for now.
[NewObject, Func="nsGenericHTMLElement::TouchEventsEnabled"]
Expand Down

0 comments on commit aecc401

Please sign in to comment.