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

Issue 1970183002: Don't use canCollapseAnonymousBlockChild() to determine whether to truncate text. (Closed)

Created:
4 years, 7 months ago by mstensho (USE GERRIT)
Modified:
4 years, 7 months ago
Reviewers:
wkorman, eae, szager1
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't use canCollapseAnonymousBlockChild() to determine whether to truncate text. Doing that happened to do exactly what we wanted, but that seems like a rather haphazard way of determining it. We want to truncate text for block containers [1]. That's LayoutBlockFlow. Additionally, in Blink, HTML button is implemented using LayoutFlexibleBox (although the web insists that it too is a block container). [1] https://www.w3.org/TR/css-ui-3/#propdef-text-overflow Rather than manually testing for isLayoutBlockFlow() || isLayoutButton() directly when deciding to truncate or not, I went and hijacked canHaveFirstLineOrFirstLetterStyle(), and renamed it to behavesLikeBlockContainer(). Committed: https://crrev.com/d08a9f0ef4a3fc48a719433f2ebe4eb53dcf186a Cr-Commit-Position: refs/heads/master@{#393354}

Patch Set 1 #

Patch Set 2 : No failures? Even if I broke button support on purpose? Fix buttons. Still struggling with writing … #

Patch Set 3 : Declaration soup - aka LayoutTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -16 lines) Patch
A third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis.html View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/button-with-ellipsis-expected.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 chunks +16 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
mstensho (USE GERRIT)
No big deal, you say? Well, it is to me, because I wanna kill canCollapseAnonymousBlockChild()! ...
4 years, 7 months ago (2016-05-12 18:42:50 UTC) #3
eae
LGTM As long as you agree to mow the lawn every now and then.
4 years, 7 months ago (2016-05-12 18:45:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970183002/40001
4 years, 7 months ago (2016-05-12 18:46:36 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/212666)
4 years, 7 months ago (2016-05-12 20:05:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970183002/40001
4 years, 7 months ago (2016-05-12 20:26:34 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-12 21:09:54 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 21:11:36 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d08a9f0ef4a3fc48a719433f2ebe4eb53dcf186a
Cr-Commit-Position: refs/heads/master@{#393354}

Powered by Google App Engine
This is Rietveld 408576698