1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/xslt/xpath/txForwardContext.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef __TX_XPATH_CONTEXT 1.10 +#define __TX_XPATH_CONTEXT 1.11 + 1.12 +#include "txIXPathContext.h" 1.13 +#include "nsAutoPtr.h" 1.14 +#include "txNodeSet.h" 1.15 + 1.16 +class txForwardContext : public txIEvalContext 1.17 +{ 1.18 +public: 1.19 + txForwardContext(txIMatchContext* aContext, 1.20 + const txXPathNode& aContextNode, 1.21 + txNodeSet* aContextNodeSet) 1.22 + : mInner(aContext), 1.23 + mContextNode(aContextNode), 1.24 + mContextSet(aContextNodeSet) 1.25 + {} 1.26 + 1.27 + TX_DECL_EVAL_CONTEXT; 1.28 + 1.29 +private: 1.30 + txIMatchContext* mInner; 1.31 + const txXPathNode& mContextNode; 1.32 + nsRefPtr<txNodeSet> mContextSet; 1.33 +}; 1.34 + 1.35 +#endif // __TX_XPATH_CONTEXT