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

Changeset 267596 in webkit


Ignore:
Timestamp:
Sep 25, 2020, 2:47:14 PM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Incorrect width value is set for partially collapsible trailing space
https://bugs.webkit.org/show_bug.cgi?id=216990

Reviewed by Simon Fraser.

Source/WebCore:

Use the letter-spacing value as the collapsible space.

Test: fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing.html

  • layout/inlineformatting/InlineLine.cpp:

(WebCore::Layout::Line::appendTextContent):

LayoutTests:

  • fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing-expected.html: Added.
  • fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267587 r267596  
     12020-09-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Incorrect width value is set for partially collapsible trailing space
     4        https://bugs.webkit.org/show_bug.cgi?id=216990
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing-expected.html: Added.
     9        * fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing.html: Added.
     10
    1112020-09-25  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r267595 r267596  
     12020-09-25  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Incorrect width value is set for partially collapsible trailing space
     4        https://bugs.webkit.org/show_bug.cgi?id=216990
     5
     6        Reviewed by Simon Fraser.
     7
     8        Use the letter-spacing value as the collapsible space.
     9
     10        Test: fast/layoutformattingcontext/horizontal-sizing-with-trailing-letter-spacing.html
     11
     12        * layout/inlineformatting/InlineLine.cpp:
     13        (WebCore::Layout::Line::appendTextContent):
     14
    1152020-09-25  James Darpinian  <jdarpinian@chromium.org>
    216
  • trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp

    r267515 r267596  
    317317    m_trimmableTrailingContent.reset();
    318318    if (!formattingContext().layoutState().shouldIgnoreTrailingLetterSpacing() && !inlineTextItem.isWhitespace() && inlineTextItem.style().letterSpacing() > 0)
    319         m_trimmableTrailingContent.addPartiallyTrimmableContent(m_runs.size() - 1, logicalWidth);
     319        m_trimmableTrailingContent.addPartiallyTrimmableContent(m_runs.size() - 1, inlineTextItem.style().letterSpacing());
    320320}
    321321
Note: See TracChangeset for help on using the changeset viewer.