Changeset 149897 in webkit
- Timestamp:
- May 10, 2013 12:02:56 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r149891 r149897 1 2013-05-10 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r148121): Empty Span does not get a linebox when it's in an anonymous block 4 https://bugs.webkit.org/show_bug.cgi?id=115818 5 6 Reviewed by David Hyatt. 7 8 * fast/inline/anonymous-block-with-empty-inline-expected.txt: Added. 9 * fast/inline/anonymous-block-with-empty-inline.html: Added. 10 1 11 2013-05-10 Dean Jackson <dino@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r149895 r149897 1 2013-05-10 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r148121): Empty Span does not get a linebox when it's in an anonymous block 4 https://bugs.webkit.org/show_bug.cgi?id=115818 5 6 Reviewed by David Hyatt. 7 8 r148121 only worried about split inlines inside anonymous blocks - it ought to have 9 catered for empty inlines, with no continuations, inside a single solitary anonymous block too. 10 11 Test: fast/inline/anonymous-block-with-empty-inline.html 12 13 * rendering/RenderBlockLineLayout.cpp: 14 (WebCore::hasInlineDirectionBordersPaddingOrMargin): 15 1 16 2013-05-10 Zan Dobersek <zdobersek@igalia.com> 2 17 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r149891 r149897 2398 2398 // Where an empty inline is split across anonymous blocks we should only give lineboxes to the 'sides' of the 2399 2399 // inline that have borders, padding or margin. 2400 bool shouldApplyStartBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || flow->inlineElementContinuation();2400 bool shouldApplyStartBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || !flow->isInlineElementContinuation(); 2401 2401 if (shouldApplyStartBorderPaddingOrMargin && (flow->borderStart() || flow->marginStart() || flow->paddingStart())) 2402 2402 return true; 2403 2403 2404 bool shouldApplyEndBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || !flow->inlineElementContinuation();2404 bool shouldApplyEndBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || flow->isInlineElementContinuation() || !flow->inlineElementContinuation(); 2405 2405 return shouldApplyEndBorderPaddingOrMargin && (flow->borderEnd() || flow->marginEnd() || flow->paddingEnd()); 2406 2406 }
Note: See TracChangeset
for help on using the changeset viewer.