本文整理汇总了C++中SVGFilterElement::externalResourcesRequiredAnimated方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGFilterElement::externalResourcesRequiredAnimated方法的具体用法?C++ SVGFilterElement::externalResourcesRequiredAnimated怎么用?C++ SVGFilterElement::externalResourcesRequiredAnimated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGFilterElement
的用法示例。
在下文中一共展示了SVGFilterElement::externalResourcesRequiredAnimated方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGFilterElementExternalResourcesRequired
JSValue jsSVGFilterElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
UNUSED_PARAM(exec);
SVGFilterElement* imp = static_cast<SVGFilterElement*>(static_cast<JSSVGFilterElement*>(asObject(slot.slotBase()))->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
return toJS(exec, obj.get(), imp);
}
示例2: jsSVGFilterElementExternalResourcesRequired
JSValue jsSVGFilterElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGFilterElement* castedThis = static_cast<JSSVGFilterElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGFilterElement* imp = static_cast<SVGFilterElement*>(castedThis->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
return result;
}
示例3: getValueProperty
//.........这里部分代码省略.........
extensions->setGenericContext<SVGAnimatedInteger>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case FilterResYAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedInteger> obj = imp->filterResYAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedInteger>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedInteger>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedInteger>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case HrefAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedString> obj = imp->hrefAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedString>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedString>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedString>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case XmllangAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
return jsString(imp->xmllang());
}
case XmlspaceAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
return jsString(imp->xmlspace());
}
case ExternalResourcesRequiredAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedBoolean>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedBoolean>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedBoolean>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case ClassNameAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedString>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedString>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedString>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case StyleAttrNum: {
SVGFilterElement* imp = static_cast<SVGFilterElement*>(impl());
return toJS(exec, WTF::getPtr(imp->style()));
}
}
return 0;
}