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

Issue 325673002: Fixing handling of Ligature when letter-spacing is present (Closed)

Created:
6 years, 6 months ago by h.joshi
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, krit, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix handling of Ligature when letter-spacing is present. Blink is applying ligature feature when letter spacing is specified which is not correct as per the CSS specification [1]. With this patch ligature is not applied when letter spacing is specified in CSS. BUG=382381 TEST=fast/text/font-ligature-letter-spacing.html 1: http://dev.w3.org/csswg/css-text-3/#letter-spacing-property Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176539

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fixing comments #

Total comments: 2

Patch Set 3 : Updating Test case #

Patch Set 4 : Code Issue fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -16 lines) Patch
A LayoutTests/fast/text/font-ligature-letter-spacing.html View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/font-ligature-letter-spacing-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/FontDescription.cpp View 1 2 3 1 chunk +21 lines, -15 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
h.joshi
PTAL, initial patch with test case.
6 years, 6 months ago (2014-06-09 09:17:51 UTC) #1
Inactive
Several typos (or incorrect English) in the description: - "letter letter" - "updates the ligature ...
6 years, 6 months ago (2014-06-09 13:00:08 UTC) #2
h.joshi
Corrected description, sorry for the typo.
6 years, 6 months ago (2014-06-09 13:09:03 UTC) #3
Inactive
https://codereview.chromium.org/325673002/diff/1/Source/platform/fonts/FontDescription.cpp File Source/platform/fonts/FontDescription.cpp (right): https://codereview.chromium.org/325673002/diff/1/Source/platform/fonts/FontDescription.cpp#newcode185 Source/platform/fonts/FontDescription.cpp:185: // As per CSS (http://www.w3.org/TR/CSS2/text.html#propdef-letter-spacing), Please always point to ...
6 years, 6 months ago (2014-06-09 13:09:44 UTC) #4
Inactive
https://codereview.chromium.org/325673002/diff/1/LayoutTests/fast/text/font-ligature-letter-spacing.html File LayoutTests/fast/text/font-ligature-letter-spacing.html (right): https://codereview.chromium.org/325673002/diff/1/LayoutTests/fast/text/font-ligature-letter-spacing.html#newcode38 LayoutTests/fast/text/font-ligature-letter-spacing.html:38: elementWidth_1 = document.getElementsByClassName("dligSpan")[0].getBoundingClientRect().width; Use "var" to declare variable. Also, ...
6 years, 6 months ago (2014-06-09 13:14:47 UTC) #5
h.joshi
new patch with suggested changes. https://codereview.chromium.org/325673002/diff/1/LayoutTests/fast/text/font-ligature-letter-spacing.html File LayoutTests/fast/text/font-ligature-letter-spacing.html (right): https://codereview.chromium.org/325673002/diff/1/LayoutTests/fast/text/font-ligature-letter-spacing.html#newcode38 LayoutTests/fast/text/font-ligature-letter-spacing.html:38: elementWidth_1 = document.getElementsByClassName("dligSpan")[0].getBoundingClientRect().width; Done, ...
6 years, 6 months ago (2014-06-09 13:33:53 UTC) #6
Inactive
Please update the spec link in the CL description as well. Once this is done ...
6 years, 6 months ago (2014-06-09 13:39:45 UTC) #7
h.joshi
Done suggested changes https://codereview.chromium.org/325673002/diff/20001/LayoutTests/fast/text/font-ligature-letter-spacing.html File LayoutTests/fast/text/font-ligature-letter-spacing.html (right): https://codereview.chromium.org/325673002/diff/20001/LayoutTests/fast/text/font-ligature-letter-spacing.html#newcode56 LayoutTests/fast/text/font-ligature-letter-spacing.html:56: <div id="log"></div> On 2014/06/09 13:39:45, Chris ...
6 years, 6 months ago (2014-06-09 13:51:59 UTC) #8
h.joshi
Emil/Behdad: Pls review this patch.
6 years, 6 months ago (2014-06-09 14:15:34 UTC) #9
eae
This is a great change, thank you! LGTM
6 years, 6 months ago (2014-06-17 18:33:36 UTC) #10
behdad_google
lgtm
6 years, 6 months ago (2014-06-17 19:16:43 UTC) #11
h.joshi
@Emil/Behdad: Thank you.
6 years, 6 months ago (2014-06-18 02:56:47 UTC) #12
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 6 months ago (2014-06-18 05:36:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/325673002/40001
6 years, 6 months ago (2014-06-18 05:38:44 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 07:19:48 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/12335)
6 years, 6 months ago (2014-06-18 07:19:49 UTC) #16
h.joshi
@Emil/Behdad: Pls review new patch, this has following change in FontDescription.cpp: From: m_letterSpacing != 0 ...
6 years, 6 months ago (2014-06-18 12:35:34 UTC) #17
eae
LGTM
6 years, 6 months ago (2014-06-19 16:36:31 UTC) #18
h.joshi
Thank you Emil.
6 years, 6 months ago (2014-06-19 17:52:06 UTC) #19
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 6 months ago (2014-06-19 17:52:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/325673002/80001
6 years, 6 months ago (2014-06-19 17:53:27 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 19:00:12 UTC) #22
Message was sent while issue was closed.
Change committed as 176539

Powered by Google App Engine
This is Rietveld 408576698