本文整理汇总了C++中SVGLineElement::classNameAnimated方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGLineElement::classNameAnimated方法的具体用法?C++ SVGLineElement::classNameAnimated怎么用?C++ SVGLineElement::classNameAnimated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGLineElement
的用法示例。
在下文中一共展示了SVGLineElement::classNameAnimated方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: classNameAttrGetter
static v8::Handle<v8::Value> classNameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.SVGLineElement.className._get");
SVGLineElement* imp = V8SVGLineElement::toNative(info.Holder());
SVGElement* context = imp;
PassRefPtr<SVGAnimatedString> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->classNameAnimated(), context);
return toV8(resultAsPassRefPtr);
}
示例2: getValueProperty
JSValue* JSSVGLineElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case X1AttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->x1Animated();
return toJS(exec, obj.get(), imp);
}
case Y1AttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->y1Animated();
return toJS(exec, obj.get(), imp);
}
case X2AttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->x2Animated();
return toJS(exec, obj.get(), imp);
}
case Y2AttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->y2Animated();
return toJS(exec, obj.get(), imp);
}
case RequiredFeaturesAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp);
}
case RequiredExtensionsAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp);
}
case SystemLanguageAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp);
}
case XmllangAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return jsString(exec, imp->xmllang());
}
case XmlspaceAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return jsString(exec, imp->xmlspace());
}
case ExternalResourcesRequiredAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
return toJS(exec, obj.get(), imp);
}
case ClassNameAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
return toJS(exec, obj.get(), imp);
}
case StyleAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->style()));
}
case TransformAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
return toJS(exec, obj.get(), imp);
}
case NearestViewportElementAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
}
case FarthestViewportElementAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
}
}
return 0;
}
示例3: getValueProperty
//.........这里部分代码省略.........
case RequiredFeaturesAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredFeatures()));
}
case RequiredExtensionsAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredExtensions()));
}
case SystemLanguageAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->systemLanguage()));
}
case XmllangAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return jsString(imp->xmllang());
}
case XmlspaceAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return jsString(imp->xmlspace());
}
case ExternalResourcesRequiredAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(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: {
SVGLineElement* imp = static_cast<SVGLineElement*>(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: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->style()));
}
case TransformAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
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 NearestViewportElementAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
}
case FarthestViewportElementAttrNum: {
SVGLineElement* imp = static_cast<SVGLineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
}
}
return 0;
}