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

Issue 147703002: Calculate Underline thickness from Font (Closed)

Created:
6 years, 11 months ago by h.joshi
Modified:
6 years, 10 months ago
CC:
blink-reviews, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jbroman, danakj, Rik, jchaffraix+rendering, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

To draw underline currently Chrome is depending on Font Size taking 10% Font Size as underline thickness which is not correct. Font properties should be taken into account to calculate underline thickness. Following change does the same, some Skia files are also updated for this change. Blink and Skia git repo are different so added two more patches related to Skia changes only. https://codereview.chromium.org/148453005/ https://codereview.chromium.org/137543008/ and made this patch Skia independent. BUG=338148 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166890

Patch Set 1 #

Patch Set 2 : Making underline thickness calculation not depending on Skia for now till Skia patches are not comm… #

Patch Set 3 : Adding pixel test as per comment #

Patch Set 4 : Adding Test cases in TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -5 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M LayoutTests/platform/mac/fast/css/line-thickness-underline-strikethrough-overline-expected.png View 1 2 Binary file 0 comments Download
M Source/core/rendering/InlineTextBox.cpp View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M Source/platform/fonts/FontMetrics.h View 4 chunks +6 lines, -0 lines 0 comments Download
M Source/platform/fonts/mac/SimpleFontDataMac.mm View 6 chunks +7 lines, -4 lines 0 comments Download
M Source/platform/fonts/skia/SimpleFontDataSkia.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
h.joshi
To draw underline currently Chrome is depending on Font Size taking 10% Font Size as ...
6 years, 10 months ago (2014-01-28 09:11:51 UTC) #1
eae
On 2014/01/28 09:11:51, h.joshi wrote: > To draw underline currently Chrome is depending on Font ...
6 years, 10 months ago (2014-01-29 16:36:04 UTC) #2
h.joshi
On 2014/01/29 16:36:04, eae wrote: > On 2014/01/28 09:11:51, h.joshi wrote: > > To draw ...
6 years, 10 months ago (2014-01-31 09:19:18 UTC) #3
eae
Ok, that makes sense, thanks for the explanation. I'd still like to see a test ...
6 years, 10 months ago (2014-01-31 18:15:53 UTC) #4
hj
On 2014/01/31 18:15:53, eae wrote: > Ok, that makes sense, thanks for the explanation. > ...
6 years, 10 months ago (2014-01-31 18:18:31 UTC) #5
h.joshi
On 2014/01/31 18:18:31, hj wrote: > On 2014/01/31 18:15:53, eae wrote: > > Ok, that ...
6 years, 10 months ago (2014-02-02 15:07:47 UTC) #6
eae
On 2014/02/02 15:07:47, h.joshi wrote: > On 2014/01/31 18:18:31, hj wrote: > > On 2014/01/31 ...
6 years, 10 months ago (2014-02-02 21:47:00 UTC) #7
hj
On 2014/02/02 21:47:00, eae wrote: > On 2014/02/02 15:07:47, h.joshi wrote: > > On 2014/01/31 ...
6 years, 10 months ago (2014-02-07 01:49:27 UTC) #8
eae
On 2014/02/07 01:49:27, hj wrote: > On 2014/02/02 21:47:00, eae wrote: > > On 2014/02/02 ...
6 years, 10 months ago (2014-02-07 01:55:41 UTC) #9
h.joshi
On 2014/02/07 01:55:41, eae wrote: > On 2014/02/07 01:49:27, hj wrote: > > On 2014/02/02 ...
6 years, 10 months ago (2014-02-08 03:54:26 UTC) #10
eae
LGTM
6 years, 10 months ago (2014-02-10 00:09:29 UTC) #11
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 10 months ago (2014-02-10 04:47:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/147703002/220001
6 years, 10 months ago (2014-02-10 04:48:10 UTC) #13
h.joshi
On 2014/02/10 00:09:29, eae wrote: > LGTM Thank you, I have some questions mainly regarding ...
6 years, 10 months ago (2014-02-10 05:44:09 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 06:45:57 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=18092
6 years, 10 months ago (2014-02-10 06:45:58 UTC) #16
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 10 months ago (2014-02-10 16:12:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/147703002/420001
6 years, 10 months ago (2014-02-10 16:12:46 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 16:12:49 UTC) #19
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-10 16:12:50 UTC) #20
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 10 months ago (2014-02-11 02:14:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/147703002/490001
6 years, 10 months ago (2014-02-11 02:14:43 UTC) #22
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 03:54:59 UTC) #23
Message was sent while issue was closed.
Change committed as 166890

Powered by Google App Engine
This is Rietveld 408576698