From c6be0ad331d628353e8ae8590a58884bcb14a862 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Tue, 22 Mar 2016 21:11:17 +0100 Subject: [PATCH] Backed out changeset 2603e80db18f (bug 1257919) --- dom/xslt/moz.build | 1 + dom/xslt/nsIXSLTException.idl | 21 +++++++++++++++++++++ dom/xslt/nsIXSLTProcessor.idl | 6 ++++++ 3 files changed, 28 insertions(+) create mode 100644 dom/xslt/nsIXSLTException.idl diff --git a/dom/xslt/moz.build b/dom/xslt/moz.build index e20ac8c69576..b49d789f1fd6 100644 --- a/dom/xslt/moz.build +++ b/dom/xslt/moz.build @@ -5,6 +5,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. XPIDL_SOURCES += [ + 'nsIXSLTException.idl', 'nsIXSLTProcessor.idl', 'nsIXSLTProcessorPrivate.idl', 'txIEXSLTRegExFunctions.idl', diff --git a/dom/xslt/nsIXSLTException.idl b/dom/xslt/nsIXSLTException.idl new file mode 100644 index 000000000000..5129157f0fe1 --- /dev/null +++ b/dom/xslt/nsIXSLTException.idl @@ -0,0 +1,21 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* 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 "nsIException.idl" + +interface nsIDOMNode; + +[scriptable, uuid(e06dfaea-92d5-47f7-a800-c5f5404d8771)] +interface nsIXSLTException : nsIException { + /** + * The node in the stylesheet that triggered the exception. + */ + readonly attribute nsIDOMNode styleNode; + + /** + * The context node, may be null + */ + readonly attribute nsIDOMNode sourceNode; +}; diff --git a/dom/xslt/nsIXSLTProcessor.idl b/dom/xslt/nsIXSLTProcessor.idl index ce379020d384..217d0d7396dd 100644 --- a/dom/xslt/nsIXSLTProcessor.idl +++ b/dom/xslt/nsIXSLTProcessor.idl @@ -20,6 +20,8 @@ interface nsIXSLTProcessor : nsISupports * If the argument is an element node it must be the * xsl:stylesheet (or xsl:transform) element of an XSLT * stylesheet. + * + * @exception nsIXSLTException */ void importStylesheet(in nsIDOMNode style); @@ -31,6 +33,8 @@ interface nsIXSLTProcessor : nsISupports * @param source The node to be transformed * @param output This document is used to generate the output * @return DocumentFragment The result of the transformation + * + * @exception nsIXSLTException */ nsIDOMDocumentFragment transformToFragment(in nsIDOMNode source, in nsIDOMDocument output); @@ -41,6 +45,8 @@ interface nsIXSLTProcessor : nsISupports * * @param source The node to be transformed * @return Document The result of the transformation + * + * @exception nsIXSLTException */ nsIDOMDocument transformToDocument(in nsIDOMNode source);