Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ImageBitmapOptions #3269

Merged
merged 1 commit into from
Jan 31, 2023
Merged

Conversation

daxpedda
Copy link
Collaborator

See the WHATWG Spec.

Adding an optional at the end was a problem because the current IDL generator will change the function name because of an overlapping second argument between functions. This cannot be fixed because it would affect all other functions.
So I opted to just implement a new table that does post-fixes, I assume this will be useful for other additions in the future.

WebIDL references:
https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:dom-createimagebitmap
https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapoptions

Copy link
Collaborator

@Liamolucko Liamolucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Liamolucko Liamolucko merged commit d696427 into rustwasm:main Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants