예제 #1
0
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;
    }
    }
}
예제 #2
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));
}