зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1452010 part 3. Remove nsIDOMDOMException. r=qdot
MozReview-Commit-ID: AFKzyxCyriJ
This commit is contained in:
Родитель
23dc2febce
Коммит
8c18063150
|
@ -12,7 +12,6 @@
|
||||||
#include "nsContentUtils.h"
|
#include "nsContentUtils.h"
|
||||||
#include "nsCOMPtr.h"
|
#include "nsCOMPtr.h"
|
||||||
#include "nsIDocument.h"
|
#include "nsIDocument.h"
|
||||||
#include "nsIDOMDOMException.h"
|
|
||||||
#include "nsIException.h"
|
#include "nsIException.h"
|
||||||
#include "nsMemory.h"
|
#include "nsMemory.h"
|
||||||
#include "xpcprivate.h"
|
#include "xpcprivate.h"
|
||||||
|
@ -356,12 +355,6 @@ Exception::Stringify(JSContext* aCx, nsString& retval)
|
||||||
CopyUTF8toUTF16(str, retval);
|
CopyUTF8toUTF16(str, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMPL_ADDREF_INHERITED(DOMException, Exception)
|
|
||||||
NS_IMPL_RELEASE_INHERITED(DOMException, Exception)
|
|
||||||
NS_INTERFACE_MAP_BEGIN(DOMException)
|
|
||||||
NS_INTERFACE_MAP_ENTRY(nsIDOMDOMException)
|
|
||||||
NS_INTERFACE_MAP_END_INHERITING(Exception)
|
|
||||||
|
|
||||||
DOMException::DOMException(nsresult aRv, const nsACString& aMessage,
|
DOMException::DOMException(nsresult aRv, const nsACString& aMessage,
|
||||||
const nsACString& aName, uint16_t aCode)
|
const nsACString& aName, uint16_t aCode)
|
||||||
: Exception(aMessage, aRv, aName, nullptr, nullptr),
|
: Exception(aMessage, aRv, aName, nullptr, nullptr),
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include "nsCOMPtr.h"
|
#include "nsCOMPtr.h"
|
||||||
#include "nsCycleCollectionParticipant.h"
|
#include "nsCycleCollectionParticipant.h"
|
||||||
#include "nsID.h"
|
#include "nsID.h"
|
||||||
#include "nsIDOMDOMException.h"
|
|
||||||
#include "nsWrapperCache.h"
|
#include "nsWrapperCache.h"
|
||||||
#include "nsIException.h"
|
#include "nsIException.h"
|
||||||
#include "nsString.h"
|
#include "nsString.h"
|
||||||
|
@ -144,15 +143,13 @@ protected:
|
||||||
|
|
||||||
NS_DEFINE_STATIC_IID_ACCESSOR(Exception, MOZILLA_EXCEPTION_IID)
|
NS_DEFINE_STATIC_IID_ACCESSOR(Exception, MOZILLA_EXCEPTION_IID)
|
||||||
|
|
||||||
class DOMException : public Exception,
|
class DOMException : public Exception
|
||||||
public nsIDOMDOMException
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DOMException(nsresult aRv, const nsACString& aMessage,
|
DOMException(nsresult aRv, const nsACString& aMessage,
|
||||||
const nsACString& aName, uint16_t aCode);
|
const nsACString& aName, uint16_t aCode);
|
||||||
|
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMException, Exception)
|
||||||
NS_DECL_NSIDOMDOMEXCEPTION
|
|
||||||
|
|
||||||
// nsWrapperCache overrides
|
// nsWrapperCache overrides
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
|
|
|
@ -10,7 +10,6 @@ with Files("**"):
|
||||||
XPIDL_SOURCES += [
|
XPIDL_SOURCES += [
|
||||||
'nsIDOMDocument.idl',
|
'nsIDOMDocument.idl',
|
||||||
'nsIDOMDocumentFragment.idl',
|
'nsIDOMDocumentFragment.idl',
|
||||||
'nsIDOMDOMException.idl',
|
|
||||||
'nsIDOMElement.idl',
|
'nsIDOMElement.idl',
|
||||||
'nsIDOMNode.idl',
|
'nsIDOMNode.idl',
|
||||||
'nsIDOMNodeList.idl',
|
'nsIDOMNodeList.idl',
|
||||||
|
|
|
@ -1,24 +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 "domstubs.idl"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* In general, DOM methods return specific error values in ordinary
|
|
||||||
* processing situations, such as out-of-bound errors.
|
|
||||||
* However, DOM operations can raise exceptions in "exceptional"
|
|
||||||
* circumstances, i.e., when an operation is impossible to perform
|
|
||||||
* (either for logical reasons, because data is lost, or because the
|
|
||||||
* implementation has become unstable)
|
|
||||||
*
|
|
||||||
* For more information on this interface please see
|
|
||||||
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#domexception
|
|
||||||
*/
|
|
||||||
|
|
||||||
[uuid(5bd766d3-57a9-4833-995d-dbe21da29595)]
|
|
||||||
interface nsIDOMDOMException : nsISupports
|
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include "StructuredCloneData.h"
|
#include "StructuredCloneData.h"
|
||||||
|
|
||||||
#include "nsIDOMDOMException.h"
|
|
||||||
#include "nsIMutable.h"
|
#include "nsIMutable.h"
|
||||||
#include "nsIXPConnect.h"
|
#include "nsIXPConnect.h"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
#include "ShimInterfaceInfo.h"
|
#include "ShimInterfaceInfo.h"
|
||||||
|
|
||||||
#include "nsIDOMDOMException.h"
|
|
||||||
#include "nsIDOMDOMRequest.h"
|
#include "nsIDOMDOMRequest.h"
|
||||||
#include "nsIDOMDocument.h"
|
#include "nsIDOMDocument.h"
|
||||||
#include "nsIDOMDocumentFragment.h"
|
#include "nsIDOMDocumentFragment.h"
|
||||||
|
@ -35,7 +34,6 @@
|
||||||
#include "mozilla/dom/CSSStyleSheetBinding.h"
|
#include "mozilla/dom/CSSStyleSheetBinding.h"
|
||||||
#include "mozilla/dom/CSSValueBinding.h"
|
#include "mozilla/dom/CSSValueBinding.h"
|
||||||
#include "mozilla/dom/CSSValueListBinding.h"
|
#include "mozilla/dom/CSSValueListBinding.h"
|
||||||
#include "mozilla/dom/DOMExceptionBinding.h"
|
|
||||||
#include "mozilla/dom/DOMParserBinding.h"
|
#include "mozilla/dom/DOMParserBinding.h"
|
||||||
#include "mozilla/dom/DOMRequestBinding.h"
|
#include "mozilla/dom/DOMRequestBinding.h"
|
||||||
#include "mozilla/dom/DocumentBinding.h"
|
#include "mozilla/dom/DocumentBinding.h"
|
||||||
|
@ -128,7 +126,6 @@ struct ComponentsInterfaceShimEntry {
|
||||||
const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
|
const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
|
||||||
{
|
{
|
||||||
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIContentFrameMessageManager, ContentFrameMessageManager),
|
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIContentFrameMessageManager, ContentFrameMessageManager),
|
||||||
DEFINE_SHIM(DOMException),
|
|
||||||
DEFINE_SHIM(DOMRequest),
|
DEFINE_SHIM(DOMRequest),
|
||||||
DEFINE_SHIM(Document),
|
DEFINE_SHIM(Document),
|
||||||
DEFINE_SHIM(DocumentFragment),
|
DEFINE_SHIM(DocumentFragment),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче