Bug 77598 - Remove [GenerateConstructor] from IDL files
Summary: Remove [GenerateConstructor] from IDL files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 77393
  Show dependency treegraph
 
Reported: 2012-02-01 20:51 PST by Kentaro Hara
Modified: 2012-02-07 12:22 PST (History)
4 users (show)

See Also:


Attachments
Patch (3.73 KB, patch)
2012-02-01 20:57 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-02-01 20:51:09 PST
[GenerateConstructor] is used in some IDL files but it is not implemented in code generators. I could not find any history about [GenerateConstructor] in code generators. Now we can remove them from the following IDL files:

    ./html/DOMSettableTokenList.idl
    ./html/DOMTokenList.idl
    ./webaudio/AudioPannerNode.idl
    ./dom/DOMStringList.idl
    ./svg/SVGFEConvolveMatrixElement.idl

Maybe we want to replace it with [Constructor] eventually, but currently no tests are written for their constructors (e.g. "new DOMTokenList()"). So simply removing them would make sense.
Comment 1 Kentaro Hara 2012-02-01 20:57:34 PST
Created attachment 125070 [details]
Patch
Comment 2 Adam Barth 2012-02-01 21:08:36 PST
Comment on attachment 125070 [details]
Patch

Ok.  It's too bad you didn't find any history here.  I suspect this got cargo-cult copied, at least to AudioPannerNode.
Comment 3 WebKit Review Bot 2012-02-01 22:24:43 PST
Comment on attachment 125070 [details]
Patch

Clearing flags on attachment: 125070

Committed r106532: <http://trac.webkit.org/changeset/106532>
Comment 4 WebKit Review Bot 2012-02-01 22:24:48 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Darin Adler 2012-02-02 18:20:47 PST
GenerateConstructor was made obsolete by r52534 and I found that revision just by doing a search for GenerateConstructor in ChangeLog files. A good technique for researching past history.
Comment 6 Darin Adler 2012-02-02 18:21:00 PST
I mean http://trac.webkit.org/changeset/52534
Comment 7 Kentaro Hara 2012-02-02 18:22:24 PST
Darin: Thanks for the info! (I was just doing "git blame CodeGeneratorJS.pm" for several revisions.)
Comment 8 Darin Adler 2012-02-07 12:22:52 PST
(In reply to comment #7)
> Darin: Thanks for the info! (I was just doing "git blame CodeGeneratorJS.pm" for several revisions.)

I guess this is a great example to bring up when people say “ChangeLog is no good; svn/git history is all you need and is way better anyway”.