This source file includes following definitions.
- setParameterMethodCustom
- getParameterMethodCustom
- removeParameterMethodCustom
#include "config.h"
#include "V8XSLTProcessor.h"
#include "V8Document.h"
#include "V8DocumentFragment.h"
#include "V8Node.h"
#include "bindings/v8/V8Binding.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentFragment.h"
#include "core/dom/Node.h"
#include "core/xml/XSLTProcessor.h"
#include "wtf/RefPtr.h"
namespace WebCore {
void V8XSLTProcessor::setParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (isUndefinedOrNull(info[1]) || isUndefinedOrNull(info[2]))
return;
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, namespaceURI, info[0]);
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, localName, info[1]);
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, value, info[2]);
XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder());
impl->setParameter(namespaceURI, localName, value);
}
void V8XSLTProcessor::getParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (isUndefinedOrNull(info[1]))
return;
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, namespaceURI, info[0]);
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, localName, info[1]);
XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder());
String result = impl->getParameter(namespaceURI, localName);
if (result.isNull())
return;
v8SetReturnValueString(info, result, info.GetIsolate());
}
void V8XSLTProcessor::removeParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (isUndefinedOrNull(info[1]))
return;
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, namespaceURI, info[0]);
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, localName, info[1]);
XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder());
impl->removeParameter(namespaceURI, localName);
}
}