⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246476 in webkit


Ignore:
Timestamp:
Jun 16, 2019, 12:30:15 PM (7 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Completely collapsed runs should not go to the trimmable run list.
https://bugs.webkit.org/show_bug.cgi?id=198900
<rdar://problem/51782156>

Reviewed by Antti Koivisto.

  • layout/inlineformatting/InlineLine.cpp:

(WebCore::Layout::Line::trailingTrimmableWidth const):
(WebCore::Layout::Line::appendTextContent):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246475 r246476  
     12019-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
    1132019-06-16  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp

    r246475 r246476  
    160160{
    161161    LayoutUnit trimmableWidth;
    162     for (auto* trimmableRun : m_trimmableContent)
     162    for (auto* trimmableRun : m_trimmableContent) {
     163        ASSERT(!trimmableRun->isCollapsed);
    163164        trimmableWidth += trimmableRun->logicalRect.width();
     165    }
    164166    return trimmableWidth;
    165167}
     
    229231    auto textContext = Content::Run::TextContext { inlineItem.start(), inlineItem.isCollapsed() ? 1 : inlineItem.length() };
    230232    auto lineItem = std::make_unique<Content::Run>(inlineItem, logicalRect, textContext, isCompletelyCollapsed, canBeExtended);
    231     if (isTrimmable)
     233    if (isTrimmable && !isCompletelyCollapsed)
    232234        m_trimmableContent.add(lineItem.get());
    233235
Note: See TracChangeset for help on using the changeset viewer.