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

Issue 2416603002: Add ability to compute text intercepts to Font (Closed)

Created:
4 years, 2 months ago by drott
Modified:
4 years, 2 months ago
Reviewers:
pdr., f(malita)
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, reed1, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ability to compute text intercepts to Font For text-decoration-skip: ink we need to have access to text intercepts, i.e. figuring out where the line decoration intersects with the glyph shapes. Skia offers this functionality and we need to integrate it with our text and graphics code. BUG=655166 Committed: https://crrev.com/b1221f6b6b59f582f07f7042bd3780e6b375c733 Cr-Commit-Position: refs/heads/master@{#425394}

Patch Set 1 #

Patch Set 2 : Add ability to compute text intercepts to GraphicsContext #

Patch Set 3 : Rebased #

Total comments: 10

Patch Set 4 : Addressing fmalita's review comments #

Total comments: 7

Patch Set 5 : Fix unused variable build error #

Patch Set 6 : Nits addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/Font.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/Font.cpp View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/fonts/FontTest.cpp View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
drott
4 years, 2 months ago (2016-10-12 16:09:05 UTC) #6
drott
Rebased
4 years, 2 months ago (2016-10-13 17:40:47 UTC) #15
f(malita)
https://codereview.chromium.org/2416603002/diff/40001/third_party/WebKit/Source/platform/fonts/Font.cpp File third_party/WebKit/Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/2416603002/diff/40001/third_party/WebKit/Source/platform/fonts/Font.cpp#newcode417 third_party/WebKit/Source/platform/fonts/Font.cpp:417: return false; false -> 0? https://codereview.chromium.org/2416603002/diff/40001/third_party/WebKit/Source/platform/fonts/Font.h File third_party/WebKit/Source/platform/fonts/Font.h (right): ...
4 years, 2 months ago (2016-10-13 18:09:19 UTC) #18
pdr.
I'm not the most familiar with this code but this seems reasonable % Florin's comments ...
4 years, 2 months ago (2016-10-14 04:40:57 UTC) #22
drott
Addressing fmalita's review comments
4 years, 2 months ago (2016-10-14 15:10:43 UTC) #24
drott
Thanks for the thorough review. Moved the API to Font only, changed method signature to ...
4 years, 2 months ago (2016-10-14 15:15:34 UTC) #27
drott
Thanks, pdr@, since the method signature changed, the "super nit" has been addressed. https://codereview.chromium.org/2416603002/diff/40001/third_party/WebKit/Source/platform/fonts/Font.h File ...
4 years, 2 months ago (2016-10-14 15:16:44 UTC) #28
drott
Florin, could you submit to CQ if it looks good to you? Thanks.
4 years, 2 months ago (2016-10-14 15:23:41 UTC) #29
f(malita)
Thanks Dominik, LGTM w/ a couple of nits. https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp File third_party/WebKit/Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp#newcode449 third_party/WebKit/Source/platform/fonts/Font.cpp:449: int ...
4 years, 2 months ago (2016-10-14 15:36:48 UTC) #32
f(malita)
https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp File third_party/WebKit/Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp#newcode436 third_party/WebKit/Source/platform/fonts/Font.cpp:436: interceptsBuffer); Ah, the bots caught this one: I think ...
4 years, 2 months ago (2016-10-14 15:39:21 UTC) #33
drott
Fix unused variable build error
4 years, 2 months ago (2016-10-14 15:50:38 UTC) #34
drott
Nits addressed
4 years, 2 months ago (2016-10-14 16:34:48 UTC) #37
drott
Thanks for the quick review, updated accordingly. https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp File third_party/WebKit/Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/2416603002/diff/60001/third_party/WebKit/Source/platform/fonts/Font.cpp#newcode449 third_party/WebKit/Source/platform/fonts/Font.cpp:449: int numIntervals ...
4 years, 2 months ago (2016-10-14 16:36:46 UTC) #40
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/2416603002/100001
4 years, 2 months ago (2016-10-14 16:37:23 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-14 18:30:57 UTC) #45
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 18:36:00 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b1221f6b6b59f582f07f7042bd3780e6b375c733
Cr-Commit-Position: refs/heads/master@{#425394}

Powered by Google App Engine
This is Rietveld 408576698