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; } } }
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)); }