Changeset 253322 in webkit


Ignore:
Timestamp:
Dec 10, 2019, 6:34:42 AM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Fix fast/text/basic/005.html
https://bugs.webkit.org/show_bug.cgi?id=205047
<rdar://problem/57780017>

Reviewed by Antti Koivisto.

Remove the code that triggers the assert on negative word-spacing.
Trimming is safe with negative values (and any negative trimmed width special handing should be in LineBreaker).

  • layout/inlineformatting/InlineLineBuilder.cpp:

(WebCore::Layout::LineBuilder::TrimmableContent::append):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r253321 r253322  
     12019-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
    1152019-12-10  Yusuke Suzuki  <ysuzuki@apple.com>
    216
  • trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp

    r253269 r253322  
    716716        trimmableWidth = trimmableRun.trailingLetterSpacing();
    717717    }
    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);
    722718    m_width += trimmableWidth;
    723719    m_lastRunIsFullyTrimmable = isFullyTrimmable;
Note: See TracChangeset for help on using the changeset viewer.