Changeset 253013 in webkit
- Timestamp:
- Dec 2, 2019 3:03:15 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r253006 r253013 1 2019-12-02 Zalan Bujtas <zalan@apple.com> 2 3 [LFC] Fix ASSERT while running fast/block/block-parent-with-zero-width-child.html 4 https://bugs.webkit.org/show_bug.cgi?id=204768 5 6 Reviewed by Antti Koivisto. 7 8 1. FormattingState::displayInlineContent() returns nullptr in case of empty inline content. 9 2. Typo in InlineItemRun::moveHorizontally 10 11 * layout/blockformatting/BlockMarginCollapse.cpp: 12 (WebCore::Layout::BlockFormattingContext::MarginCollapse::marginsCollapseThrough const): 13 * layout/inlineformatting/InlineLineBuilder.h: 14 (WebCore::Layout::LineBuilder::InlineItemRun::moveHorizontally): 15 1 16 2019-12-02 Yusuke Suzuki <ysuzuki@apple.com> 2 17 -
trunk/Source/WebCore/layout/blockformatting/BlockMarginCollapse.cpp
r252979 r253013 396 396 auto isConsideredEmpty = [&] { 397 397 auto& formattingState = downcast<InlineFormattingState>(layoutState.establishedFormattingState(layoutContainer)); 398 for (auto& lineBox : formattingState.displayInlineContent()->lineBoxes) { 399 if (!lineBox.isConsideredEmpty()) 400 return false; 398 if (auto* inlineContent = formattingState.displayInlineContent()) { 399 for (auto& lineBox : inlineContent->lineBoxes) { 400 if (!lineBox.isConsideredEmpty()) 401 return false; 402 } 401 403 } 402 404 // Any float box in this formatting context prevents collapsing through. -
trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.h
r253004 r253013 173 173 bool isCollapsed() const { return m_isCollapsed; } 174 174 175 void moveHorizontally(LayoutUnit offset) { m_logical Width+= offset; }175 void moveHorizontally(LayoutUnit offset) { m_logicalLeft += offset; } 176 176 177 177 void removeTrailingLetterSpacing();
Note: See TracChangeset
for help on using the changeset viewer.