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

Issue 2969623004: RenderText: Allow strike-through line thickness to be customized. (Closed)

Created:
3 years, 5 months ago by cjgrant
Modified:
3 years, 5 months ago
Reviewers:
msw
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderText: Allow strike-through line thickness to be customized. This CL plumbs in the ability to override the default strike-through line thickness used by RenderText. Along the way: - Remove unused underscore thickness configuration hooks. - Remove unncessary DrawDecorations wrapper. BUG=735759 Review-Url: https://codereview.chromium.org/2969623004 Cr-Commit-Position: refs/heads/master@{#484580} Committed: https://chromium.googlesource.com/chromium/src/+/6c111c024ce31e4de508032dc8b7a18564007ed5

Patch Set 1 #

Total comments: 23

Patch Set 2 : Address comments; fix fraction. #

Patch Set 3 : Reincorporate URL bar unittest improvements. #

Total comments: 12

Patch Set 4 : Address final nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -96 lines) Patch
M chrome/browser/android/vr_shell/textures/render_text_wrapper.h View 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/render_text_wrapper.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc View 1 2 3 6 chunks +11 lines, -11 lines 0 comments Download
M ui/gfx/render_text.h View 1 2 3 5 chunks +7 lines, -15 lines 0 comments Download
M ui/gfx/render_text.cc View 1 5 chunks +18 lines, -41 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ui/gfx/render_text_mac.mm View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 3 chunks +0 lines, -25 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
cjgrant
Mike, please see my comments in-line. There are some open questions about the best way ...
3 years, 5 months ago (2017-06-30 19:04:25 UTC) #4
msw
This approach seems fine to me, sorry for not responding to your earlier email, I'm ...
3 years, 5 months ago (2017-06-30 20:51:23 UTC) #7
cjgrant
https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc#newcode58 ui/gfx/render_text.cc:58: const SkScalar kStrikeThroughOffset = (-SK_Scalar1 * 29 / 126); ...
3 years, 5 months ago (2017-06-30 21:06:25 UTC) #8
msw
https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc#newcode58 ui/gfx/render_text.cc:58: const SkScalar kStrikeThroughOffset = (-SK_Scalar1 * 29 / 126); ...
3 years, 5 months ago (2017-06-30 23:01:33 UTC) #9
cjgrant
https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/2969623004/diff/1/ui/gfx/render_text.cc#newcode57 ui/gfx/render_text.cc:57: // Fraction of the text size to lower a ...
3 years, 5 months ago (2017-07-05 16:16:48 UTC) #11
msw
lgtm with minor comments; thanks! https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc File chrome/browser/android/vr_shell/textures/render_text_wrapper.cc (right): https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc#newcode32 chrome/browser/android/vr_shell/textures/render_text_wrapper.cc:32: void RenderTextWrapper::set_strike_thickness_factor(SkScalar f) { ...
3 years, 5 months ago (2017-07-05 19:55:00 UTC) #16
cjgrant
https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc File chrome/browser/android/vr_shell/textures/render_text_wrapper.cc (right): https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc#newcode32 chrome/browser/android/vr_shell/textures/render_text_wrapper.cc:32: void RenderTextWrapper::set_strike_thickness_factor(SkScalar f) { On 2017/07/05 19:55:00, msw wrote: ...
3 years, 5 months ago (2017-07-05 20:44:43 UTC) #17
cjgrant
PS: Thanks for the quick reviews on this change! Very much appreciated...
3 years, 5 months ago (2017-07-05 20:45:22 UTC) #18
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/2969623004/60001
3 years, 5 months ago (2017-07-05 20:46:03 UTC) #21
msw
lgtm https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc File chrome/browser/android/vr_shell/textures/render_text_wrapper.cc (right): https://codereview.chromium.org/2969623004/diff/40001/chrome/browser/android/vr_shell/textures/render_text_wrapper.cc#newcode32 chrome/browser/android/vr_shell/textures/render_text_wrapper.cc:32: void RenderTextWrapper::set_strike_thickness_factor(SkScalar f) { On 2017/07/05 20:44:43, cjgrant ...
3 years, 5 months ago (2017-07-05 20:51:55 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_TIMED_OUT, build has not started yet; ...
3 years, 5 months ago (2017-07-05 22:46:54 UTC) #24
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/2969623004/60001
3 years, 5 months ago (2017-07-06 14:24:32 UTC) #26
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 14:28:36 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6c111c024ce31e4de508032dc8b7...

Powered by Google App Engine
This is Rietveld 408576698