From 851ae98f97d78f959ca750e6dd7814bef0a866e3 Mon Sep 17 00:00:00 2001 From: "sicking%bigfoot.com" Date: Wed, 2 Nov 2005 07:39:23 +0000 Subject: [PATCH] Bug 186979: Start transformation at actual node passed in. r=Pike sr=peterv a=asa --- content/xslt/src/xslt/txMozillaXSLTProcessor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp b/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp index 5bbead47db2e..61293db9ff60 100644 --- a/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp +++ b/content/xslt/src/xslt/txMozillaXSLTProcessor.cpp @@ -281,12 +281,12 @@ txMozillaXSLTProcessor::TransformDocument(nsIDOMNode* aSourceDOM, // Create a new ProcessorState. Must be done after creating the documents // so that C++ will ensure that it is destroyed before the documents. - ProcessorState ps(&sourceDocument, &xslDocument); + ProcessorState ps(sourceNode, &xslDocument); // XXX Need to add error observers // Set current txIEvalContext - txSingleNodeContext evalContext(&sourceDocument, &ps); + txSingleNodeContext evalContext(sourceNode, &ps); ps.setEvalContext(&evalContext); // Index templates and process top level xslt elements @@ -348,12 +348,12 @@ txMozillaXSLTProcessor::TransformDocument(nsIDOMNode* aSourceDOM, // Create a new ProcessorState. Must be done after creating the documents // so that C++ will ensure that it is destroyed before the documents. - ProcessorState ps(&sourceDocument, &xslDocument); + ProcessorState ps(sourceNode, &xslDocument); // XXX Need to add error observers // Set current txIEvalContext - txSingleNodeContext evalContext(&sourceDocument, &ps); + txSingleNodeContext evalContext(sourceNode, &ps); ps.setEvalContext(&evalContext); // Index templates and process top level xslt elements @@ -444,12 +444,12 @@ txMozillaXSLTProcessor::TransformToDocument(nsIDOMNode *aSource, // Create a new ProcessorState. Must be done after creating the documents // so that C++ will ensure that it is destroyed before the documents. - ProcessorState ps(&sourceDocument, &xslDocument); + ProcessorState ps(sourceNode, &xslDocument); // XXX Need to add error observers // Set current txIEvalContext - txSingleNodeContext evalContext(&sourceDocument, &ps); + txSingleNodeContext evalContext(sourceNode, &ps); ps.setEvalContext(&evalContext); // Index templates and process top level xslt elements @@ -512,12 +512,12 @@ txMozillaXSLTProcessor::TransformToFragment(nsIDOMNode *aSource, // Create a new ProcessorState. Must be done after creating the documents // so that C++ will ensure that it is destroyed before the documents. - ProcessorState ps(&sourceDocument, &xslDocument); + ProcessorState ps(sourceNode, &xslDocument); // XXX Need to add error observers // Set current txIEvalContext - txSingleNodeContext evalContext(&sourceDocument, &ps); + txSingleNodeContext evalContext(sourceNode, &ps); ps.setEvalContext(&evalContext); // Index templates and process top level xslt elements