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

Issue 2337373002: Update composition underline start/end constraints. (Closed)

Created:
4 years, 3 months ago by wkorman
Modified:
4 years, 3 months ago
Reviewers:
Stephen Chennney, kojii
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update composition underline start/end constraints and add tests. - Constrain paint start/end to be bounded by actual text size and leave space for at least one character. - Include start() in paintLength for RTL in paintCompositionUnderline(). It's included in paintEnd, and I believe its absence was a bug. - Early-out when painting SVG inline text if text length is zero, as we do in for non-SVG inline text. - Add some DCHECKs to reflect my understanding of key preconditions. - Add basic LTR/RTL composition underline layout tests. - Add a 'split' test case wherein InlineTextBox has start = 1. BUG=641261 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/7c023bffa5e0367f60d6aac94ac5b38af8802c2f Cr-Commit-Position: refs/heads/master@{#418947}

Patch Set 1 #

Patch Set 2 : Remove huge test case. #

Patch Set 3 : Don't remove early-out on full truncation. #

Total comments: 2

Patch Set 4 : Sync to head. #

Messages

Total messages: 23 (13 generated)
wkorman
Test notes, I could continue working on these but I have gained sufficient confidence around ...
4 years, 3 months ago (2016-09-14 02:23:23 UTC) #7
kojii
Non-owner lgtm, thank you for working on this thoroughly. https://codereview.chromium.org/2337373002/diff/40001/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2337373002/diff/40001/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp#newcode277 third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:277: ...
4 years, 3 months ago (2016-09-14 05:21:31 UTC) #8
wkorman
https://codereview.chromium.org/2337373002/diff/40001/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2337373002/diff/40001/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp#newcode277 third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:277: m_inlineTextBox.end() : m_inlineTextBox.start() + m_inlineTextBox.truncation() - 1); On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 19:34:47 UTC) #9
wkorman
+schenney for add'l review and OWNERS
4 years, 3 months ago (2016-09-15 03:36:46 UTC) #11
Stephen Chennney
Nice stuff. lgtm.
4 years, 3 months ago (2016-09-15 17:47:05 UTC) #12
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/2337373002/40001
4 years, 3 months ago (2016-09-15 17:57:56 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/129439) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 3 months ago (2016-09-15 18:02:43 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/2337373002/60001
4 years, 3 months ago (2016-09-15 18:30:27 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 20:10:48 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 20:12:38 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7c023bffa5e0367f60d6aac94ac5b38af8802c2f
Cr-Commit-Position: refs/heads/master@{#418947}

Powered by Google App Engine
This is Rietveld 408576698