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

Issue 2692233005: Fix hyphenated words not to overflow on Android (Closed)

Created:
3 years, 10 months ago by kojii
Modified:
3 years, 10 months ago
Reviewers:
eae
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix hyphenated words not to overflow on Android This patch fixes to choose the correct hyphenation point when the word has multiple hyphenation points on Android. The line breaker computes the number of characters that can fit and computes that last hyphenation point within the number. The number was not used correctly in the Android hyphenation engine. The fix is about 5 lines in |HyphenationMinikin::lastHyphenLocation|, but the test isn't small. The hyphenation engine loads dictionaries using a mojo service, but since the mojo service is not available in unit tests, the test creates the engine from the dictionary file it loaded. BUG=692094 Review-Url: https://codereview.chromium.org/2692233005 Cr-Commit-Position: refs/heads/master@{#451519} Committed: https://chromium.googlesource.com/chromium/src/+/dd1e6431c28b8f3de55d580b66662859baf9d28b

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -27 lines) Patch
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/text/HyphenationTest.cpp View 1 2 chunks +53 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/text/hyphenation/HyphenationMinikin.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/text/hyphenation/HyphenationMinikin.cpp View 1 5 chunks +21 lines, -27 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
kojii
PTAL. Apologies, I should have tests for the interface layer from the beginning.
3 years, 10 months ago (2017-02-16 02:14:25 UTC) #14
kojii
Removed "WIP:", forgot doing so before publish.
3 years, 10 months ago (2017-02-16 02:42:09 UTC) #15
eae
LGTM
3 years, 10 months ago (2017-02-17 19:00:09 UTC) #16
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/2692233005/40001
3 years, 10 months ago (2017-02-18 03:52:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on ...
3 years, 10 months ago (2017-02-18 05:53:24 UTC) #21
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/2692233005/40001
3 years, 10 months ago (2017-02-18 08:48:54 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/367849)
3 years, 10 months ago (2017-02-18 10:23:04 UTC) #25
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/2692233005/40001
3 years, 10 months ago (2017-02-19 04:40:46 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-19 09:12:03 UTC) #30
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dd1e6431c28b8f3de55d580b6666...

Powered by Google App Engine
This is Rietveld 408576698