static v8::Handle<v8::Value> flipXCallback(const v8::Arguments& args) { INC_STATS("DOM.SVGMatrix.flipX"); V8SVGPODTypeWrapper<AffineTransform>* impWrapper = V8SVGPODTypeWrapper<AffineTransform>::toNative(args.Holder()); AffineTransform impInstance = *impWrapper; AffineTransform* imp = &impInstance; AffineTransform result = *imp; result.flipX(); RefPtr<V8SVGPODTypeWrapper<AffineTransform> > wrapper = V8SVGStaticPODTypeWrapper<AffineTransform>::create(result); SVGElement* context = V8Proxy::svgContext(impWrapper); V8Proxy::setSVGContext(wrapper.get(), context); impWrapper->commitChange(impInstance, context); return toV8(wrapper.release()); }