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

Cleanup Path2D constructor #3409

Merged
merged 2 commits into from
Jan 28, 2018
Merged

Cleanup Path2D constructor #3409

merged 2 commits into from
Jan 28, 2018

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 26, 2018

This reverts f635643 which added a constructor that did not get implemented. (Verified for Chrome, Firefox, and Safari by inspecting IDL.)

It also changes the constructor signature slightly to more idiomatic IDL and makes various editorial improvements.


/canvas.html ( diff )

This reverts f635643 which added a constructor that did not get implemented. (Verified for Chrome, Firefox, and Safari by inspecting IDL.)

It also changes the constructor signature slightly to more idiomatic IDL and makes various editorial improvements.
@annevk annevk added topic: canvas needs tests Moving the issue forward requires someone to write tests labels Jan 26, 2018
@annevk
Copy link
Member Author

annevk commented Jan 26, 2018

@whatwg/canvas should probably give an okay here as it changes the binding slightly (at least, I think making the argument optional will affect how "undefined" is handled, but with this change it'll be handled as developers expect).

In addition, it removes a Path2D constructor that someone may have been planning on implementing so would be good to verify before removal.

@annevk annevk added normative change removal/deprecation Removing or deprecating a feature labels Jan 26, 2018
@annevk
Copy link
Member Author

annevk commented Jan 26, 2018

TODO:

  • Make sure interfaces/html.idl is updated in web-platform-tests.
  • File bugs against implementations to make this change. I'm now thinking this is probably not observable since if undefined were to be stringified it would just end up being ignored as SVG path and Path2D.length is 0 already...

annevk added a commit to web-platform-tests/wpt that referenced this pull request Jan 28, 2018
@annevk annevk merged commit e811cf1 into master Jan 28, 2018
@annevk annevk deleted the annevk/path2d branch January 28, 2018 12:15
foolip pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Moving the issue forward requires someone to write tests normative change removal/deprecation Removing or deprecating a feature topic: canvas
Development

Successfully merging this pull request may close these issues.

None yet

2 participants