[Webkit-unassigned] [Bug 80620] New: Generated GObject binding code is incorrect for static functions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 8 11:40:37 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=80620
Summary: Generated GObject binding code is incorrect for static
functions
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jonlee at apple.com
In TestObj.idl:
static void classMethod();
static long classMethodWithOptional(in [Optional] long arg);
Leads to generated code:
WebKitDOMTestObj.h:
WEBKIT_API void
webkit_dom_test_obj_class_method(WebKitDOMTestObj* self);
WEBKIT_API glong
webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg);
WebKitDOMTestObj.cpp:
void
webkit_dom_test_obj_class_method(WebKitDOMTestObj* self)
{
g_return_if_fail(self);
WebCore::JSMainThreadNullState state;
WebCore::TestObj * item = WebKit::core(self);
item->classMethod();
}
glong
webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg)
{
g_return_val_if_fail(self, 0);
WebCore::JSMainThreadNullState state;
WebCore::TestObj * item = WebKit::core(self);
glong res = item->classMethodWithOptional(arg);
return res;
}
--
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