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

Changeset 267622 in webkit


Ignore:
Timestamp:
Sep 26, 2020, 7:14:13 AM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Line content logical width expands with run expansions (text-align: justify)
https://bugs.webkit.org/show_bug.cgi?id=217011

Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/layoutformattingcontext/run-expansion-extends-line-content-width.html

  • layout/inlineformatting/InlineLine.cpp:

(WebCore::Layout::Line::applyRunExpansion):

LayoutTests:

  • fast/layoutformattingcontext/run-expansion-extends-line-content-width-expected.html: Added.
  • fast/layoutformattingcontext/run-expansion-extends-line-content-width.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267617 r267622  
     12020-09-26  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Line content logical width expands with run expansions (text-align: justify)
     4        https://bugs.webkit.org/show_bug.cgi?id=217011
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * fast/layoutformattingcontext/run-expansion-extends-line-content-width-expected.html: Added.
     9        * fast/layoutformattingcontext/run-expansion-extends-line-content-width.html: Added.
     10
    1112020-09-25  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r267621 r267622  
     12020-09-26  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Line content logical width expands with run expansions (text-align: justify)
     4        https://bugs.webkit.org/show_bug.cgi?id=217011
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Test: fast/layoutformattingcontext/run-expansion-extends-line-content-width.html
     9
     10        * layout/inlineformatting/InlineLine.cpp:
     11        (WebCore::Layout::Line::applyRunExpansion):
     12
    1132020-09-26  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp

    r267596 r267622  
    112112        accumulatedExpansion += computedExpansion;
    113113    }
     114    // Content grows as runs expand.
     115    m_contentLogicalWidth += accumulatedExpansion;
     116    ASSERT(m_contentLogicalWidth == m_horizontalConstraint);
    114117}
    115118
Note: See TracChangeset for help on using the changeset viewer.