getCharNumAtPosition should take DOMPointInit as argument
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 May 2018 21:38:53 +0000 (21:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 May 2018 21:38:53 +0000 (21:38 +0000)
commit8cdc65b7ffd21146f1b1c1a8bfdf7407225d207d
treeb4d0ee0fd8d83af768fd9f26cba5827fdb347298
parent9650dda5df254b910d1dd5cedaa8102f5d5ab112
getCharNumAtPosition should take DOMPointInit as argument
https://bugs.webkit.org/show_bug.cgi?id=184695

Patch by Dirk Schulze <dschulze@chromium.org> on 2018-05-02
Reviewed by Antti Koivisto.

Source/WebCore:

Extend existing tests for getCharNumAtPosition.

* svg/SVGTextContentElement.cpp:
(WebCore::SVGTextContentElement::getCharNumAtPosition):
* svg/SVGTextContentElement.h:
* svg/SVGTextContentElement.idl: Use DOMPointInit argument.

LayoutTests:

* svg/text/lengthAdjust-text-metrics.html: Run tests with dictionary.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/text/lengthAdjust-text-metrics-expected.txt
LayoutTests/svg/text/lengthAdjust-text-metrics.html
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGTextContentElement.cpp
Source/WebCore/svg/SVGTextContentElement.h
Source/WebCore/svg/SVGTextContentElement.idl