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

Issue 593673003: Different fonts selected for width calculation and actual painting (Closed)

Created:
6 years, 3 months ago by h.joshi
Modified:
6 years ago
Reviewers:
tkent, eae, behdad
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, aandrey+blink_chromium.org, jchaffraix+rendering, pdr., Mikhail, blink-reviews-wtf_chromium.org, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@ellipsis_not_present
Project:
blink
Visibility:
Public.

Description

In some cases different fonts are selected to get width of string and to draw text. In Font.cpp calls, font get changed due to fallback font architecture. When making calls we need to check if Unicode is present in primary font or not. In case of Ellipsis, we need to check if Ellipsis Unicode is present in primary font or not, if not then use "Dot" Unicode, this is also suggested in CSS3 (http://www.w3.org/TR/2003/CR-css3-text-20030514/) BUG=416425 TEST=fast/text/ellipsis-platform-font-change.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183597

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment fixes #

Patch Set 3 : Rebaseline Patch #

Patch Set 4 : Rebase patch #

Patch Set 5 : Rebase patch #

Total comments: 2

Patch Set 6 : Rebasing Test Expectation file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -11 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
A LayoutTests/fast/text/ellipsis-platform-font-change.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/ellipsis-platform-font-change-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/third_party/AndroidEmojiMonospace/AndroidEmoji.ttf.subset-uni203C.ttf View Binary file 0 comments Download
A LayoutTests/third_party/AndroidEmojiMonospace/LICENSE.txt View 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/third_party/AndroidEmojiMonospace/README.chromium View 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/rendering/InlineTextBox.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlockLineLayout.cpp View 1 2 3 4 5 1 chunk +23 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderText.cpp View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download
M Source/wtf/unicode/CharacterNames.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (7 generated)
h.joshi
@Emil/Behdad: Pls review
6 years, 3 months ago (2014-09-24 11:21:33 UTC) #2
eae
https://codereview.chromium.org/593673003/diff/1/Source/core/rendering/RenderText.cpp File Source/core/rendering/RenderText.cpp (right): https://codereview.chromium.org/593673003/diff/1/Source/core/rendering/RenderText.cpp#newcode757 Source/core/rendering/RenderText.cpp:757: if (i == start + len) Instead of reusing ...
6 years, 3 months ago (2014-09-24 11:35:39 UTC) #3
h.joshi
Made suggested changes, pls review. https://codereview.chromium.org/593673003/diff/1/Source/core/rendering/RenderText.cpp File Source/core/rendering/RenderText.cpp (right): https://codereview.chromium.org/593673003/diff/1/Source/core/rendering/RenderText.cpp#newcode757 Source/core/rendering/RenderText.cpp:757: if (i == start ...
6 years, 3 months ago (2014-09-24 20:25:58 UTC) #4
eae
LGTM
6 years, 2 months ago (2014-09-26 13:37:09 UTC) #5
h.joshi
Thank you Emil.
6 years, 2 months ago (2014-09-26 17:51:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593673003/20001
6 years, 2 months ago (2014-09-26 17:52:30 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/16150)
6 years, 2 months ago (2014-09-26 18:00:53 UTC) #10
h.joshi
@tkent: Pls review "Source/wtf/unicode/CharacterNames.h" changes. Getting "** Presubmit ERRORS **, Missing LGTM from an OWNER ...
6 years, 2 months ago (2014-09-26 18:26:31 UTC) #12
tkent
The WTF change looks ok. However layout test try bots are failing.
6 years, 2 months ago (2014-09-29 00:08:35 UTC) #13
h.joshi
@tkent: Need to update TestExpectation file, as due to changes in Ellipsis code, related test ...
6 years, 2 months ago (2014-09-29 19:19:16 UTC) #14
tkent
On 2014/09/29 19:19:16, h.joshi wrote: > @tkent: Need to update TestExpectation file, as due to ...
6 years, 2 months ago (2014-09-30 01:35:05 UTC) #15
h.joshi
@tkent: Updated Test expectation file, now Windows, Mac and Linux bots are green which were ...
6 years, 2 months ago (2014-10-06 14:26:46 UTC) #16
tkent
ok, rs lgtm
6 years, 2 months ago (2014-10-07 01:42:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593673003/80001
6 years, 2 months ago (2014-10-07 01:44:30 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, 2 months ago (2014-10-07 01:44:51 UTC) #21
tkent
https://codereview.chromium.org/593673003/diff/80001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/593673003/diff/80001/LayoutTests/TestExpectations#newcode1472 LayoutTests/TestExpectations:1472: # Failure on Linux Leak bot Please do not ...
6 years, 2 months ago (2014-10-07 01:48:47 UTC) #22
h.joshi
https://codereview.chromium.org/593673003/diff/80001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/593673003/diff/80001/LayoutTests/TestExpectations#newcode1472 LayoutTests/TestExpectations:1472: # Failure on Linux Leak bot Done, these cases ...
6 years, 2 months ago (2014-10-13 08:49:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593673003/180001
6 years, 2 months ago (2014-10-13 08:50:52 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:180001) as 183597
6 years, 2 months ago (2014-10-13 11:01:15 UTC) #26
cbiesinger
6 years, 2 months ago (2014-10-13 15:16:39 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:180001) has been created in
https://codereview.chromium.org/648233002/ by cbiesinger@chromium.org.

The reason for reverting is: This broke fast/css/font-face-opentype.html and
fast/text/line-break-after-question-mark.html on WinXP

https://sheriff-o-matic.appspot.com/blink/failure/webkit_tests%3A%3Afast%2Fcs....

Powered by Google App Engine
This is Rietveld 408576698