Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 2739993002: Add ShapeResult::positionForOffset method (Closed)

Created:
3 years, 9 months ago by eae
Modified:
3 years, 9 months ago
Reviewers:
kojii
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, fmalita+watch_chromium.org, Rik, Stephen Chennney, Justin Novosad, blink-reviews, kinuko+watch, ajuma+watch_chromium.org, danakj+watch_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp View 1 chunk +82 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp View 2 chunks +46 lines, -3 lines 1 comment Download

Messages

Total messages: 13 (9 generated)
eae
https://codereview.chromium.org/2739993002/diff/1/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp File third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp (right): https://codereview.chromium.org/2739993002/diff/1/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp#newcode224 third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp:224: float ShapeResult::positionForOffset(unsigned absoluteOffset) const { This is similar to ...
3 years, 9 months ago (2017-03-09 05:16:32 UTC) #5
kojii
lgtm, great!
3 years, 9 months ago (2017-03-09 05:23:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2739993002/1
3 years, 9 months ago (2017-03-09 07:15:06 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 07:30:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/fde2d61151443bbd9679ab979850...

Powered by Google App Engine
This is Rietveld 408576698