DescriptionDon'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. #
Messages
Total messages: 14 (7 generated)
|