[Webkit-unassigned] [Bug 67458] Generate a WebKitCSSMatrix constructor of V8 using the IDL 'Constructor' extended attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 2 11:12:33 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67458
--- Comment #10 from Kentaro Hara <haraken at google.com> 2011-09-02 11:12:33 PST ---
FYI: The generated code for the WebKitCSSMatrix constructor is as follows.
v8::Handle<v8::Value> V8WebKitCSSMatrix::constructorCallback(const v8::Arguments& args)
{
INC_STATS("DOM.WebKitCSSMatrix.Constructor");
if (!args.IsConstructCall())
return throwError("DOM object constructor cannot be called as a function.", V8Proxy::TypeError);
ExceptionCode ec = 0;
V8Parameter<> cssValue;
if (args.Length() >= 1)
cssValue = V8Parameter<>(args[0]);
if (!cssValue.prepare())
return v8::Undefined();
RefPtr<WebKitCSSMatrix> obj = WebKitCSSMatrix::create(cssValue, ec);
if (ec)
goto fail;
V8DOMWrapper::setDOMWrapper(args.Holder(), &info, obj.get());
obj->ref();
V8DOMWrapper::setJSWrapperForDOMObject(obj.get(), v8::Persistent<v8::Object>::New(args.Holder()));
return args.Holder();
fail:
return throwError(ec);
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list