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

Changeset 246480 in webkit


Ignore:
Timestamp:
Jun 16, 2019, 1:02:17 PM (7 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Line::isVisuallyEmpty should check inline-block boxes.
https://bugs.webkit.org/show_bug.cgi?id=198894
<rdar://problem/51780886>

Reviewed by Antti Koivisto.

Non-zero width/height inline-block boxes make the line visually non-empty.

  • layout/inlineformatting/InlineLine.cpp:

(WebCore::Layout::Line::isVisuallyEmpty const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246479 r246480  
     12019-06-16  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Line::isVisuallyEmpty should check inline-block boxes.
     4        https://bugs.webkit.org/show_bug.cgi?id=198894
     5        <rdar://problem/51780886>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Non-zero width/height inline-block boxes make the line visually non-empty.
     10
     11        * layout/inlineformatting/InlineLine.cpp:
     12        (WebCore::Layout::Line::isVisuallyEmpty const):
     13
    1142019-06-16  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp

    r246478 r246480  
    7777        if (run->inlineItem.isContainerEnd())
    7878            continue;
     79        if (run->inlineItem.layoutBox().establishesFormattingContext()) {
     80            ASSERT(run->inlineItem.layoutBox().isInlineBlockBox());
     81            auto& displayBox = m_layoutState.displayBoxForLayoutBox(run->inlineItem.layoutBox());
     82            if (!displayBox.width())
     83                continue;
     84            if (m_skipVerticalAligment || displayBox.height())
     85                return false;
     86            continue;
     87        }
    7988        if (!run->isCollapsed)
    8089            return false;
Note: See TracChangeset for help on using the changeset viewer.