Bug 27319
Summary: | Need CustomConstructor attribute to reduce amount of copy/paste constructor code | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | abarth, annevk, sam |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Eric Seidel (no email)
Need CustomConstructor attribute to reduce amount of copy/paste constructor code
A bunch of idls (like Worker, WebKitPoint, WebKitMatrix, XHR, etc. don't use GenerateConstructor because they want to have their own custom constructor function (which takes arguments). Need to fix these to use less boilerplate code.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
Turns out that we'd probably need:
ConstructorNeedsGlobalObject
as well, in order to replace a bunch of the existing custom constructors.
The existing custom constructors would use:
GenerateConstructor
CanConstruct
CustomConstructor
ConstructorNeedsGlobalObject
Perhaps there is a more succinct way to express all that. :)
Anne van Kesteren
Web IDL has seen numerous improvements in the past decade+, including with regards to this.