Bug 116308 - Get rid of [ConstructorParameters] extended attributes
Summary: Get rid of [ConstructorParameters] extended attributes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: http://dev.w3.org/2006/webapi/WebIDL/...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 05:58 PDT by Chris Dumez
Modified: 2013-05-17 14:38 PDT (History)
9 users (show)

See Also:


Attachments
Patch (15.25 KB, patch)
2013-05-17 07:20 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2013-05-17 05:58:53 PDT
If we specify arguments to [CustomConstructor] extended attribute (similarly to [Constructor]), then we no longer need the [ConstructorParameters] extended attribute to determine the constructor length.

This is less error prone, leads to more readable IDL, and more consistent with [Constructor] extended attribute. This also reduces the number of WebKit specific IDL attributes, which is always good.
Comment 1 Chris Dumez 2013-05-17 07:08:44 PDT
FYI, I already did the same thing in Blink:
https://src.chromium.org/viewvc/blink?view=rev&revision=148663
Comment 2 Chris Dumez 2013-05-17 07:20:52 PDT
Created attachment 202082 [details]
Patch
Comment 3 Kentaro Hara 2013-05-17 07:26:02 PDT
Comment on attachment 202082 [details]
Patch

Looks great!
Comment 4 WebKit Commit Bot 2013-05-17 13:05:24 PDT
Comment on attachment 202082 [details]
Patch

Clearing flags on attachment: 202082

Committed r150292: <http://trac.webkit.org/changeset/150292>
Comment 5 WebKit Commit Bot 2013-05-17 13:05:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Chris Dumez 2013-05-17 14:38:19 PDT
Updated WebKit IDL wiki accordingly:
http://trac.webkit.org/wiki/WebKitIDL?action=diff&version=117&old_version=116