Changeset 253322 in webkit
- Timestamp:
- Dec 10, 2019, 6:34:42 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r253321 r253322 1 2019-12-10 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][IFC] Fix fast/text/basic/005.html 4 https://bugs.webkit.org/show_bug.cgi?id=205047 5 <rdar://problem/57780017> 6 7 Reviewed by Antti Koivisto. 8 9 Remove the code that triggers the assert on negative word-spacing. 10 Trimming is safe with negative values (and any negative trimmed width special handing should be in LineBreaker). 11 12 * layout/inlineformatting/InlineLineBuilder.cpp: 13 (WebCore::Layout::LineBuilder::TrimmableContent::append): 14 1 15 2019-12-10 Yusuke Suzuki <ysuzuki@apple.com> 2 16 -
trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp
r253269 r253322 716 716 trimmableWidth = trimmableRun.trailingLetterSpacing(); 717 717 } 718 // word-spacing could very well be negative, but it does not mean that the line gains that much extra space when the content is trimmed.719 trimmableWidth = std::max<InlineLayoutUnit>(0, trimmableWidth);720 721 ASSERT(trimmableWidth >= 0);722 718 m_width += trimmableWidth; 723 719 m_lastRunIsFullyTrimmable = isFullyTrimmable;
Note:
See TracChangeset
for help on using the changeset viewer.