Summary: | Rename [CallWith] to [ConstructorCallWith] for IDL interfaces | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
Component: | Bindings | Assignee: | Chris Dumez <cdumez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, darin, haraken, laszlo.gombos | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Chris Dumez
2013-06-11 23:13:14 PDT
BTW, I'm happy to accept these changes to Blink to keep IDLs consistent between WebKit and Blink. Created attachment 204416 [details]
Patch
(In reply to comment #1) > BTW, I'm happy to accept these changes to Blink to keep IDLs consistent between WebKit and Blink. Great, consistency at IDL level would be nice indeed. Thanks. Comment on attachment 204416 [details]
Patch
What constructors do not need ConstructorCallWith=ScriptExecutionContext?
If almost all constructors need it, we might want to make the ScriptExecutionContext parameter by default.
Created attachment 204417 [details]
Patch
- Removed [ConstructorCallWith] statement from interface with custom constructors as this has no effect.
I looked into how many interfaces need the ScriptExecutionContext for their constructor.
There are 30 interfaces with non-custom constructors. 14 of those require the ScriptExecutionContext for their constructor.
Comment on attachment 204417 [details] Patch > There are 30 interfaces with non-custom constructors. 14 of those require the ScriptExecutionContext for their constructor. Thanks, then it would make sense to have the IDL attribute. Comment on attachment 204417 [details] Patch Clearing flags on attachment: 204417 Committed r151495: <http://trac.webkit.org/changeset/151495> All reviewed patches have been landed. Closing bug. Updated wiki accordingly in http://trac.webkit.org/wiki/WebKitIDL?action=diff&version=126&old_version=125 |