зеркало из https://github.com/mozilla/gecko-dev.git
Bug 998738 - Kill nsIDOMXPathNamespace (and window.XPathNamespace); r=smaug
This commit is contained in:
Родитель
6e3bbe31e7
Коммит
7262b1ae70
|
@ -75,7 +75,6 @@
|
|||
// DOM core includes
|
||||
#include "nsError.h"
|
||||
#include "nsIDOMUserDataHandler.h"
|
||||
#include "nsIDOMXPathNamespace.h"
|
||||
#include "nsIDOMXULButtonElement.h"
|
||||
#include "nsIDOMXULCheckboxElement.h"
|
||||
#include "nsIDOMXULPopupElement.h"
|
||||
|
@ -223,7 +222,6 @@ DOMCI_DATA_NO_CLASS(DOMPrototype)
|
|||
DOMCI_DATA_NO_CLASS(DOMConstructor)
|
||||
|
||||
DOMCI_DATA_NO_CLASS(UserDataHandler)
|
||||
DOMCI_DATA_NO_CLASS(XPathNamespace)
|
||||
DOMCI_DATA_NO_CLASS(XULControlElement)
|
||||
DOMCI_DATA_NO_CLASS(XULLabeledControlElement)
|
||||
DOMCI_DATA_NO_CLASS(XULButtonElement)
|
||||
|
@ -448,8 +446,6 @@ static nsDOMClassInfoData sClassInfoData[] = {
|
|||
|
||||
NS_DEFINE_CHROME_XBL_CLASSINFO_DATA(UserDataHandler, nsDOMGenericSH,
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CLASSINFO_DATA(XPathNamespace, nsDOMGenericSH,
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CHROME_XBL_CLASSINFO_DATA(XULControlElement, nsDOMGenericSH,
|
||||
DOM_DEFAULT_SCRIPTABLE_FLAGS)
|
||||
NS_DEFINE_CHROME_XBL_CLASSINFO_DATA(XULLabeledControlElement, nsDOMGenericSH,
|
||||
|
@ -1121,10 +1117,6 @@ nsDOMClassInfo::Init()
|
|||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMUserDataHandler)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(XPathNamespace, nsIDOMXPathNamespace)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMXPathNamespace)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(XULControlElement, nsIDOMXULControlElement)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMXULControlElement)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
@ -3166,7 +3158,6 @@ const InterfaceShimEntry kInterfaceShimMap[] =
|
|||
{ "nsIDOMRange", "Range" },
|
||||
{ "nsIDOMSVGLength", "SVGLength" },
|
||||
{ "nsIDOMNodeFilter", "NodeFilter" },
|
||||
{ "nsIDOMXPathNamespace", "XPathNamespace" },
|
||||
{ "nsIDOMXPathResult", "XPathResult" } };
|
||||
|
||||
static nsresult
|
||||
|
|
|
@ -93,7 +93,6 @@ DOMCI_CLASS(CSSPageRule)
|
|||
DOMCI_CLASS(CSSFontFeatureValuesRule)
|
||||
|
||||
DOMCI_CLASS(UserDataHandler)
|
||||
DOMCI_CLASS(XPathNamespace)
|
||||
DOMCI_CLASS(XULControlElement)
|
||||
DOMCI_CLASS(XULLabeledControlElement)
|
||||
DOMCI_CLASS(XULButtonElement)
|
||||
|
|
|
@ -8,7 +8,6 @@ XPIDL_SOURCES += [
|
|||
'nsIDOMNSXPathExpression.idl',
|
||||
'nsIDOMXPathEvaluator.idl',
|
||||
'nsIDOMXPathExpression.idl',
|
||||
'nsIDOMXPathNamespace.idl',
|
||||
'nsIDOMXPathNSResolver.idl',
|
||||
'nsIDOMXPathResult.idl',
|
||||
]
|
||||
|
|
|
@ -1,19 +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/. */
|
||||
|
||||
/**
|
||||
* Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208
|
||||
*/
|
||||
|
||||
#include "nsIDOMNode.idl"
|
||||
|
||||
[scriptable, uuid(558c2ab9-513e-43c2-afea-4930024b15b3)]
|
||||
interface nsIDOMXPathNamespace : nsIDOMNode
|
||||
{
|
||||
// XPathNodeType
|
||||
const unsigned short XPATH_NAMESPACE_NODE = 13;
|
||||
|
||||
readonly attribute nsIDOMElement ownerElement;
|
||||
};
|
|
@ -584,7 +584,6 @@ exports.browser = {
|
|||
XPathEvaluator : false,
|
||||
XPathException : false,
|
||||
XPathExpression : false,
|
||||
XPathNamespace : false,
|
||||
XPathNSResolver : false,
|
||||
XPathResult : false
|
||||
};
|
||||
|
|
|
@ -1189,8 +1189,6 @@ var interfaceNamesInGlobalScope =
|
|||
"XPathEvaluator",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"XPathExpression",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"XPathNamespace",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
"XPathNSResolver",
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include "nsIDOMCharacterData.h"
|
||||
#include "nsDOMClassInfoID.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDOMXPathNamespace.h"
|
||||
#include "nsXPathResult.h"
|
||||
#include "txURIUtils.h"
|
||||
#include "txXPathTreeWalker.h"
|
||||
|
@ -94,8 +93,7 @@ nsXPathExpression::EvaluateWithContext(nsIDOMNode *aContextNode,
|
|||
nodeType != nsIDOMNode::ELEMENT_NODE &&
|
||||
nodeType != nsIDOMNode::ATTRIBUTE_NODE &&
|
||||
nodeType != nsIDOMNode::COMMENT_NODE &&
|
||||
nodeType != nsIDOMNode::PROCESSING_INSTRUCTION_NODE &&
|
||||
nodeType != nsIDOMXPathNamespace::XPATH_NAMESPACE_NODE) {
|
||||
nodeType != nsIDOMNode::PROCESSING_INSTRUCTION_NODE) {
|
||||
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=790732
|
|||
is(Ci.nsIDOMRange, Range);
|
||||
is(Ci.nsIDOMSVGLength, SVGLength);
|
||||
is(Ci.nsIDOMNodeFilter, NodeFilter);
|
||||
is(Ci.nsIDOMXPathNamespace, XPathNamespace);
|
||||
is(Ci.nsIDOMXPathResult, XPathResult);
|
||||
|
||||
// Test for Bug 895231
|
||||
|
|
Загрузка…
Ссылка в новой задаче