Changeset 222321 in webkit
- Timestamp:
- Sep 21, 2017 9:28:35 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r222319 r222321 1 2017-09-21 Zhifei FANG <facetothefate@gmail.com> 2 3 In regular block layout, the width of a child's margin box should always be equal to that of its containing block 4 Merge from Blink https://bugs.chromium.org/p/chromium/issues/detail?id=708751 5 https://bugs.webkit.org/show_bug.cgi?id=176620 6 7 Reviewed by Zalan Bujtas. 8 9 * fast/block/over-constrained-auto-margin-expected.txt: Added. 10 * fast/block/over-constrained-auto-margin.html: Added. 11 1 12 2017-09-21 Ms2ger <Ms2ger@igalia.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r222317 r222321 1 2017-09-21 Zhifei FANG <facetothefate@gmail.com> 2 3 In regular block layout, the width of a child's margin box should always be equal to that of its containing block 4 Merge from Blink https://bugs.chromium.org/p/chromium/issues/detail?id=708751 5 https://bugs.webkit.org/show_bug.cgi?id=176620 6 7 Reviewed by Zalan Bujtas. 8 9 Test: fast/block/over-constrained-auto-margin.html 10 11 * rendering/RenderBox.cpp: 12 (WebCore::RenderBox::computeLogicalWidthInRegion const): 13 1 14 2017-09-21 Javier Fernandez <jfernandez@igalia.com> 2 15 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r222263 r222321 2390 2390 && !cb.isRenderGrid() 2391 2391 ) { 2392 LayoutUnit newMargin = containerLogicalWidth - computedValues.m_extent - cb.marginStartForChild(*this);2392 LayoutUnit newMarginTotal = containerLogicalWidth - computedValues.m_extent; 2393 2393 bool hasInvertedDirection = cb.style().isLeftToRightDirection() != style().isLeftToRightDirection(); 2394 2394 if (hasInvertedDirection) 2395 computedValues.m_margins.m_start = newMargin ;2395 computedValues.m_margins.m_start = newMarginTotal - computedValues.m_margins.m_end; 2396 2396 else 2397 computedValues.m_margins.m_end = newMargin ;2397 computedValues.m_margins.m_end = newMarginTotal - computedValues.m_margins.m_start; 2398 2398 } 2399 2399 }
Note: See TracChangeset
for help on using the changeset viewer.