Changeset 246476 in webkit
- Timestamp:
- Jun 16, 2019, 12:30:15 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/inlineformatting/InlineLine.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246475 r246476 1 2019-06-16 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][IFC] Completely collapsed runs should not go to the trimmable run list. 4 https://bugs.webkit.org/show_bug.cgi?id=198900 5 <rdar://problem/51782156> 6 7 Reviewed by Antti Koivisto. 8 9 * layout/inlineformatting/InlineLine.cpp: 10 (WebCore::Layout::Line::trailingTrimmableWidth const): 11 (WebCore::Layout::Line::appendTextContent): 12 1 13 2019-06-16 Zalan Bujtas <zalan@apple.com> 2 14 -
trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp
r246475 r246476 160 160 { 161 161 LayoutUnit trimmableWidth; 162 for (auto* trimmableRun : m_trimmableContent) 162 for (auto* trimmableRun : m_trimmableContent) { 163 ASSERT(!trimmableRun->isCollapsed); 163 164 trimmableWidth += trimmableRun->logicalRect.width(); 165 } 164 166 return trimmableWidth; 165 167 } … … 229 231 auto textContext = Content::Run::TextContext { inlineItem.start(), inlineItem.isCollapsed() ? 1 : inlineItem.length() }; 230 232 auto lineItem = std::make_unique<Content::Run>(inlineItem, logicalRect, textContext, isCompletelyCollapsed, canBeExtended); 231 if (isTrimmable )233 if (isTrimmable && !isCompletelyCollapsed) 232 234 m_trimmableContent.add(lineItem.get()); 233 235
Note:
See TracChangeset
for help on using the changeset viewer.