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

Issue 2602793004: Fix positioning of "text-underline-position:under" for multi-elements (Closed)

Created:
3 years, 11 months ago by kojii
Modified:
3 years, 11 months ago
Reviewers:
drott, eae
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix positioning of "text-underline-position:under" for multi-elements This patch fixes following issues in text-underline-position: under 1. Doesn't work with vertical-lr 2. Is always including replaced elements in the "under" check 3. Doesn't limit the "under" check to the containing element with the text-decoration specified 4. Computes incorrect position for mixed sizes This patch is a port of wkb.ug/141528. BUG=677240 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2602793004 Cr-Commit-Position: refs/heads/master@{#445597} Committed: https://chromium.googlesource.com/chromium/src/+/2ac0bb3d271e109b6f71929eecc1e44442f9576b

Patch Set 1 #

Patch Set 2 : ceil #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Patch Set 6 : WIP #

Patch Set 7 : Cleanup and add tests #

Patch Set 8 : Fix Linux/Mac builds #

Patch Set 9 : Add NeedsRebaseline and comments cleanup #

Patch Set 10 : Split 5 and 6 to a separate CL #

Patch Set 11 : Fix builds #

Patch Set 12 : Cleanup #

Patch Set 13 : Minor cleanup #

Total comments: 2

Patch Set 14 : drott nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -30 lines) Patch
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-first-line-decoration.html View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-first-line-decoration-expected.html View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-first-line-decoration-vertical.html View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-first-line-decoration-vertical-expected.html View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-mixed-fonts.html View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-mixed-fonts-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-subscript.html View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-subscript-expected.html View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vertical.html View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vertical-expected.html View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineBox.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/RootInlineBox.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +49 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 56 (44 generated)
kojii
drott@, PTAL. I wanted to fix perf, automatic for CJK, and Meiryo, all of which ...
3 years, 11 months ago (2017-01-20 07:39:29 UTC) #7
drott
Thanks for porting this, Koji. I'll need a bit more time reviewing this. Can the ...
3 years, 11 months ago (2017-01-20 16:01:08 UTC) #14
kojii
On 2017/01/20 at 16:01:08, drott wrote: > Thanks for porting this, Koji. I'll need a ...
3 years, 11 months ago (2017-01-20 16:37:01 UTC) #15
kojii
PTAL, 5 and 6 are split. Still not small, sorry, but now this is almost ...
3 years, 11 months ago (2017-01-20 21:54:10 UTC) #29
drott
Thanks for splitting, that makes it easier. Mostly makes sense to me, even though I ...
3 years, 11 months ago (2017-01-23 08:14:44 UTC) #41
kojii
On 2017/01/23 at 08:14:44, drott wrote: > ...with the nit of parameter redundancy. Did you ...
3 years, 11 months ago (2017-01-23 09:01:21 UTC) #42
drott
Oh, wow... I keep clicking reply instead of "M" for publishing comments...sorry. This is what ...
3 years, 11 months ago (2017-01-23 10:30:37 UTC) #43
kojii
eae@ PTAL. Thank you drott@, yeah, "publish" and "reply" are confusing. https://codereview.chromium.org/2602793004/diff/240001/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): ...
3 years, 11 months ago (2017-01-23 13:17:44 UTC) #47
drott
LGTM
3 years, 11 months ago (2017-01-23 14:12:01 UTC) #48
eae
LGTM
3 years, 11 months ago (2017-01-23 18:20:35 UTC) #51
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/2602793004/260001
3 years, 11 months ago (2017-01-24 01:57:33 UTC) #53
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 02:09:16 UTC) #56
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/2ac0bb3d271e109b6f71929eecc1...

Powered by Google App Engine
This is Rietveld 408576698