WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
76036
Implement the [Supplemental] IDL for custom methods
https://bugs.webkit.org/show_bug.cgi?id=76036
Summary
Implement the [Supplemental] IDL for custom methods
Kentaro Hara
Reported
2012-01-10 23:53:27 PST
We have implemented the [Supplemental] IDL for non-custom methods in
bug 75944
. We should also implement it for custom methods. By this fix, we will have implemented the [Supplemental] IDL for custom attributes, non-custom attributes, custom methods and non-custom methods, which will cover most practical use cases.
Attachments
Patch
(11.10 KB, patch)
2012-01-11 03:14 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(8.23 KB, patch)
2012-01-11 15:44 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-01-11 03:14:00 PST
Created
attachment 122001
[details]
Patch
Kentaro Hara
Comment 2
2012-01-11 03:18:25 PST
Comment on
attachment 122001
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122001&action=review
> Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h:48 > +- (void)supplementalMethod3;
Currently ObjC does not support custom attributes nor methods, but ObjC outputs meaningless code for them. I'll stop those outputs in a follow-up patch.
Adam Barth
Comment 3
2012-01-11 10:17:07 PST
Comment on
attachment 122001
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122001&action=review
> Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp:332 > + TestInterface* impl = static_cast<TestInterface*>(castedThis->impl()); > + return JSValue::encode(castedThis->supplementalMethod3(impl, exec));
I'm not sure I understand. This looks like we're calling a non-static method of JSTestInterface, which means we don't need to passing impl as an argument because JSTestInterface already knows about impl.
Kentaro Hara
Comment 4
2012-01-11 15:44:08 PST
Created
attachment 122111
[details]
Patch
Kentaro Hara
Comment 5
2012-01-11 15:45:25 PST
Comment on
attachment 122001
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122001&action=review
>> Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp:332 >> + return JSValue::encode(castedThis->supplementalMethod3(impl, exec)); > > I'm not sure I understand. This looks like we're calling a non-static method of JSTestInterface, which means we don't need to passing impl as an argument because JSTestInterface already knows about impl.
Right. Fixed it. I've made a similar mistake in
bug 74837
and
bug 74841
. I'll fix them in the next patch.
WebKit Review Bot
Comment 6
2012-01-11 16:56:41 PST
Comment on
attachment 122111
[details]
Patch Clearing flags on attachment: 122111 Committed
r104767
: <
http://trac.webkit.org/changeset/104767
>
WebKit Review Bot
Comment 7
2012-01-11 16:56:47 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug