Changeset 238449 in webkit
- Timestamp:
- Nov 22, 2018, 10:56:28 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/inlineformatting/InlineFormattingContext.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238448 r238449 1 2018-11-22 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][IFC] Merge addNonBreakableStart/NonBreakableEnd calls. 4 https://bugs.webkit.org/show_bug.cgi?id=191903 5 6 Reviewed by Antti Koivisto. 7 8 * layout/inlineformatting/InlineFormattingContext.cpp: 9 (WebCore::Layout::InlineFormattingContext::collectInlineContentForSubtree const): 10 1 11 2018-11-22 Zalan Bujtas <zalan@apple.com> 2 12 -
trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp
r238448 r238449 500 500 ASSERT(firstDescendantInlineBox); 501 501 firstDescendantInlineBox->addDetachingRule(InlineItem::DetachingRule::BreakAtStart); 502 auto startOffset = border.horizontal.left + horizontalMargins.left; 502 503 if (padding) 503 firstDescendantInlineBox->addNonBreakableStart(padding->horizontal.left); 504 firstDescendantInlineBox->addNonBreakableStart(border.horizontal.left); 505 firstDescendantInlineBox->addNonBreakableStart(horizontalMargins.left); 504 startOffset += padding->horizontal.left; 505 firstDescendantInlineBox->addNonBreakableStart(startOffset); 506 506 } 507 507 508 508 if (rootBreaksAtEnd()) { 509 509 lastDescendantInlineBox->addDetachingRule(InlineItem::DetachingRule::BreakAtEnd); 510 auto endOffset = border.horizontal.right + horizontalMargins.right; 510 511 if (padding) 511 lastDescendantInlineBox->addNonBreakableEnd(padding->horizontal.right); 512 lastDescendantInlineBox->addNonBreakableEnd(border.horizontal.right); 513 lastDescendantInlineBox->addNonBreakableEnd(horizontalMargins.right); 512 endOffset += padding->horizontal.right; 513 lastDescendantInlineBox->addNonBreakableEnd(endOffset); 514 514 } 515 515 }
Note:
See TracChangeset
for help on using the changeset viewer.