DescriptionAdd ShapeResult::positionForOffset method
Add a new positionForOffset method to ShapeResult that returns the x-pos
for a given offset. Effectively being the companion to offsetForPosition
that returns the offset for a given x-pos. Also add unit tests for both.
Will be used by the LayoutNG shaper-driven line-breaking implementation.
R=kojii@chromium.org
TEST=Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp
Review-Url: https://codereview.chromium.org/2739993002
Cr-Commit-Position: refs/heads/master@{#455691}
Committed: https://chromium.googlesource.com/chromium/src/+/fde2d61151443bbd9679ab97985004ff4d29ed03
Patch Set 1 #
Total comments: 1
Messages
Total messages: 13 (9 generated)
|