本文整理汇总了C++中JSSVGMarkerElement::globalObject方法的典型用法代码示例。如果您正苦于以下问题:C++ JSSVGMarkerElement::globalObject方法的具体用法?C++ JSSVGMarkerElement::globalObject怎么用?C++ JSSVGMarkerElement::globalObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSSVGMarkerElement
的用法示例。
在下文中一共展示了JSSVGMarkerElement::globalObject方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGMarkerElementStyle
JSValue jsSVGMarkerElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
return result;
}
示例2: jsSVGMarkerElementPreserveAspectRatio
JSValue jsSVGMarkerElementPreserveAspectRatio(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl());
RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp);
return result;
}
示例3: jsSVGMarkerElementExternalResourcesRequired
JSValue jsSVGMarkerElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp);
return result;
}
示例4: jsSVGMarkerElementPrototypeFunctionGetPresentationAttribute
JSValue JSC_HOST_CALL jsSVGMarkerElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSSVGMarkerElement::s_info))
return throwError(exec, TypeError);
JSSVGMarkerElement* castedThisObj = static_cast<JSSVGMarkerElement*>(asObject(thisValue));
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThisObj->impl());
const UString& name = args.at(0).toString(exec);
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
return result;
}
示例5: jsSVGMarkerElementConstructor
JSValue jsSVGMarkerElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGMarkerElement* domObject = static_cast<JSSVGMarkerElement*>(asObject(slotBase));
return JSSVGMarkerElement::getConstructor(exec, domObject->globalObject());
}