Bug 179249
| Summary: | [WebIDL] add support for mixins | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tobie Langel <tobie.langel> |
| Component: | Bindings | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cdumez, sam |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tobie Langel
Hi all!
WebIDL recently introduced dedicated syntax for mixins[0].
This syntax replaces the [NoInterfaceObject] extended attribute and "implements statement" which have been deprecated (except for a few legacy uses cases explicitly mentioned in the spec[1]).
You can read more about it in the spec[2].
In most cases, the changes should be relatively straightforward. The now deprecated:
interface Foo { };
[NoInterfaceObject] // (Mostly) DEPRECATED
interface Bar { };
Foo implementes Bar; // DEPRECATED
should just be rewritten as:
interface Foo { };
interface mixin Bar { };
Foo includes Bar;
Please feel free to reach out if you have any questions.
Thanks!
[0]: https://github.com/heycam/webidl/commit/45e8173d40ddff8dcf81697326e094bcf8b92920
[1]: https://heycam.github.io/webidl/#NoInterfaceObject
[2]: https://heycam.github.io/webidl/#idl-interface-mixins
This is tracked in: https://github.com/heycam/webidl/issues/472
The original pull-request: https://github.com/heycam/webidl/pull/433
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |