本文整理汇总了C++中SVGPatternElement::yAnimated方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGPatternElement::yAnimated方法的具体用法?C++ SVGPatternElement::yAnimated怎么用?C++ SVGPatternElement::yAnimated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGPatternElement
的用法示例。
在下文中一共展示了SVGPatternElement::yAnimated方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGPatternElementY
JSValue jsSVGPatternElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
UNUSED_PARAM(exec);
SVGPatternElement* imp = static_cast<SVGPatternElement*>(static_cast<JSSVGPatternElement*>(asObject(slot.slotBase()))->impl());
RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
return toJS(exec, obj.get(), imp);
}
示例2: getValueProperty
JSValue* JSSVGPatternElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case PatternUnitsAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedEnumeration> obj = imp->patternUnitsAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedEnumeration>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedEnumeration>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedEnumeration>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case PatternContentUnitsAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedEnumeration> obj = imp->patternContentUnitsAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedEnumeration>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedEnumeration>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedEnumeration>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case PatternTransformAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedTransformList> obj = imp->patternTransformAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedTransformList>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedTransformList>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedTransformList>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case XAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case YAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedLength>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedLength>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedLength>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case WidthAttrNum: {
SVGPatternElement* imp = static_cast<SVGPatternElement*>(impl());
//.........这里部分代码省略.........