Skip to content

Use DOMPointInit argument for getCharNumAtPosition. #389 #414

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

Merged
merged 3 commits into from
May 1, 2018

Conversation

Image for: Conversation
Copy link
Contributor

No description provided.

dirkschulze requested review from dstorey and AmeliaBR April 15, 2018 05:59
Copy link
Contributor

AmeliaBR left a comment

Choose a reason for hiding this comment

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

See correction comment.
Were you going to change the isPointInStroke/Fill methods, too?

It would be nice to also support an Init input for the SVGPointList methods, but I think thats too much of a change of behavior at this point.

@@ -541,6 +541,14 @@ <h3 id="text">Text chapter (owner: BogdanBrinza)</h3>
</li>
</ul>

<div class='changed-since-cr1'>
<ul>
<li>Specify <a>DOMPointInit</a> as argument type for getComputedTextLength() instead of
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong method name

Copy link
Contributor Author

Added requested changes.

Copy link
Contributor Author

@AmeliaBR @dstorey I’ll rebase the patch soon. Could you give your blessing for the change? Got WG approval yesterday.

<interface name='DOMPointReadOnly' href='https://www.w3.org/TR/2014/WD-geometry-1-20140522/#dom-dompointreadonly'/>
<interface name='SVGPoint' href='https://www.w3.org/TR/2014/CR-geometry-1-20141125/#dom-dompoint'/>
<interface name='DOMPoint' href='https://www.w3.org/TR/2014/CR-geometry-1-20141125/#dom-dompoint'/>
<interface name='DOMPointInit' href='https://www.w3.org/TR/2014/CR-geometry-1-20141125/#dictdef-dompointinit'/>
Copy link
Member

Choose a reason for hiding this comment

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

Should we link to the bare https://www.w3.org/TR/geometry-1/ rather than a specific version that will become stale in time? (not sure what the official policy is on this but it always seems weird to me having links to old versions)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we do it in many places now, I’d assume we should.

dirkschulze force-pushed the DOMPointInit-getCharNumAtPosition branch from ff1e082 to d22560f Compare May 1, 2018 18:50
dirkschulze merged commit c5811ea into master May 1, 2018
dirkschulze deleted the DOMPointInit-getCharNumAtPosition branch May 1, 2018 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants