static v8::Handle<v8::Value> preserveAlphaAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGFEConvolveMatrixElement.preserveAlpha._get"); SVGFEConvolveMatrixElement* imp = V8SVGFEConvolveMatrixElement::toNative(info.Holder()); SVGElement* context = imp; PassRefPtr<SVGAnimatedBoolean> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->preserveAlphaAnimated(), context); return toV8(resultAsPassRefPtr); }
JSValue jsSVGFEConvolveMatrixElementPreserveAlpha(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); RefPtr<SVGAnimatedBoolean> obj = imp->preserveAlphaAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; }