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

Issue 2017533002: Simplify OpenType caps feature detection logic (Closed)

Created:
4 years, 7 months ago by drott
Modified:
4 years, 6 months ago
Reviewers:
eae, behdad
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, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify OpenType caps feature detection logic We can rely on HarfBuzz API for finding the required OpenType features, instead of implementing our own find loops. Thanks to Behdad for the suggestion. TEST=LayoutTest/fast/text/font-features/* BUG=603137 R=behdad,eae Committed: https://crrev.com/c51ee10d5afd2a657ed357cda9caf31c788790c1 Cr-Commit-Position: refs/heads/master@{#396579}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -31 lines) Patch
M third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp View 1 chunk +16 lines, -31 lines 2 comments Download

Messages

Total messages: 16 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017533002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017533002/1
4 years, 7 months ago (2016-05-26 08:13:10 UTC) #2
drott
PTAL https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp File third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp (right): https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp#newcode53 third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp:53: return false; This was not in your original ...
4 years, 7 months ago (2016-05-26 08:14:05 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-26 09:40:59 UTC) #5
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 09:41:04 UTC) #6
drott
Ping eae@, behdad@ - thanks for taking a look.
4 years, 6 months ago (2016-05-27 12:36:03 UTC) #7
behdad
lgtm after addressing comment. Thanks! https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp File third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp (right): https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp#newcode53 third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp:53: return false; On 2016/05/26 ...
4 years, 6 months ago (2016-05-27 17:33:29 UTC) #8
eae
LGTM
4 years, 6 months ago (2016-05-27 20:02:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017533002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017533002/1
4 years, 6 months ago (2016-05-27 20:02:53 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-05-27 22:00:38 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c51ee10d5afd2a657ed357cda9caf31c788790c1 Cr-Commit-Position: refs/heads/master@{#396579}
4 years, 6 months ago (2016-05-27 22:03:17 UTC) #14
behdad
drott, can you please address my comment in a separate commit? Thanks.
4 years, 6 months ago (2016-05-29 18:05:22 UTC) #15
drott
4 years, 6 months ago (2016-05-30 08:07:26 UTC) #16
Message was sent while issue was closed.
On 2016/05/27 at 17:33:29, behdad wrote:
> lgtm after addressing comment.  Thanks!
> 
>
https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/p...
> File
third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
(right):
> 
>
https://codereview.chromium.org/2017533002/diff/1/third_party/WebKit/Source/p...
>
third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp:53:
return false;
> On 2016/05/26 08:14:05, drott wrote:
> > This was not in your original suggestion. I guess I can return early here if
we
> > can't find GSUB for any script?
> 
> No no.  The return value means something else.  It will be false if default
script was found...  Don't prematurely optimize; the cost if there's no GSUB is
unmeasurable.

Thanks for the review, addressed in:
https://codereview.chromium.org/2026433002

I did not mean to optimize here, but not just ignore a return value of non-void
function. And the meaning of the return values is not documented, that's why I
was asking.

Powered by Google App Engine
This is Rietveld 408576698