Changeset 252921 in webkit


Ignore:
Timestamp:
Nov 28, 2019 6:24:02 AM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Fix LineLayoutContext::shouldProcessUncommittedContent logic
https://bugs.webkit.org/show_bug.cgi?id=204656
<rdar://problem/57511221>

Reviewed by Antti Koivisto.

Move the [text][text] and [ ][text] checks further down because we adjust the "lastUncomittedContent" by skipping [container start][container end] items.
(This was recently regressed at r252859)

  • layout/inlineformatting/LineLayoutContext.cpp:

(WebCore::Layout::LineLayoutContext::shouldProcessUncommittedContent const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252920 r252921  
     12019-11-28  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Fix LineLayoutContext::shouldProcessUncommittedContent logic
     4        https://bugs.webkit.org/show_bug.cgi?id=204656
     5        <rdar://problem/57511221>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Move the [text][text] and [ ][text] checks further down because we adjust the "lastUncomittedContent" by skipping [container start][container end] items. 
     10        (This was recently regressed at r252859)
     11
     12        * layout/inlineformatting/LineLayoutContext.cpp:
     13        (WebCore::Layout::LineLayoutContext::shouldProcessUncommittedContent const):
     14
    1152019-11-28  Zalan Bujtas  <zalan@apple.com>
    216
  • trunk/Source/WebCore/layout/inlineformatting/LineLayoutContext.cpp

    r252865 r252921  
    255255        if (downcast<InlineTextItem>(inlineItem).isWhitespace())
    256256            return true;
    257         // texttext -> continuous content.
    258         // ' 'text -> commit boundary.
    259         if (lastUncomittedContent->isText())
    260             return downcast<InlineTextItem>(*lastUncomittedContent).isWhitespace();
    261257        // <span>text -> the inline container start and the text content form an unbreakable continuous content.
    262258        if (lastUncomittedContent->isContainerStart())
     
    280276                return false;
    281277        }
     278        // texttext -> continuous content.
     279        // ' 'text -> commit boundary.
     280        if (lastUncomittedContent->isText())
     281            return downcast<InlineTextItem>(*lastUncomittedContent).isWhitespace();
    282282        // <img>text -> the inline box is on a commit boundary.
    283283        if (lastUncomittedContent->isBox())
Note: See TracChangeset for help on using the changeset viewer.