JSValue jsSVGZoomAndPanZoomAndPan(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGZoomAndPan* castedThis = static_cast<JSSVGZoomAndPan*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(castedThis->impl()); JSValue result = jsNumber(imp->zoomAndPan()); return result; }
void JSSVGZoomAndPan::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case ZoomAndPanAttrNum: { SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(impl()); imp->setZoomAndPan(value->toInt32(exec)); if (context()) context()->svgAttributeChanged(impl()->associatedAttributeName()); break; } } }
JSValue* JSSVGZoomAndPan::getValueProperty(ExecState* exec, int token) const { switch (token) { case ZoomAndPanAttrNum: { SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(impl()); return jsNumber(exec, imp->zoomAndPan()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
void setJSSVGZoomAndPanZoomAndPan(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGZoomAndPan* castedThis = static_cast<JSSVGZoomAndPan*>(thisObject); SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(castedThis->impl()); imp->setZoomAndPan(value.toUInt32(exec)); }