Changeset 124793 in webkit
- Timestamp:
- Aug 6, 2012 12:17:20 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r124792 r124793 1 2012-07-31 Ojan Vafai <ojan@chromium.org> 2 3 need tests to ensure flexboxes play nicely with box-sizing 4 https://bugs.webkit.org/show_bug.cgi?id=70771 5 6 Reviewed by Tony Chang. 7 8 * css3/flexbox/box-sizing-expected.txt: Added. 9 * css3/flexbox/box-sizing.html: Added. 10 1 11 2012-08-06 John J. Barton <johnjbarton@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r124792 r124793 1 2012-07-31 Ojan Vafai <ojan@chromium.org> 2 3 need tests to ensure flexboxes play nicely with box-sizing 4 https://bugs.webkit.org/show_bug.cgi?id=70771 5 6 Reviewed by Tony Chang. 7 8 Anytime we grab the width/height off of the RenderStyle, we need to adjust 9 it for box-sizing. Fortunately, we only do this two places in RenderFlexibleBox. 10 Also, delete crossAxisLength since it's unused. 11 12 Test: css3/flexbox/box-sizing.html 13 14 * rendering/RenderFlexibleBox.cpp: 15 (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): 16 * rendering/RenderFlexibleBox.h: 17 1 18 2012-08-06 John J. Barton <johnjbarton@chromium.org> 2 19 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r124278 r124793 361 361 } 362 362 363 Length RenderFlexibleBox::crossAxisLength() const364 {365 return isHorizontalFlow() ? style()->height() : style()->width();366 }367 368 363 void RenderFlexibleBox::setCrossAxisExtent(LayoutUnit extent) 369 364 { … … 411 406 if (heightIncludingScrollbar == -1) 412 407 return -1; 413 return std::max(LayoutUnit(0), heightIncludingScrollbar- scrollbarLogicalHeight());408 return std::max(LayoutUnit(0), computeContentBoxLogicalHeight(heightIncludingScrollbar) - scrollbarLogicalHeight()); 414 409 } 415 410 … … 610 605 return mainAxisExtent - mainAxisBorderAndPaddingExtentForChild(child); 611 606 } 612 return std::max(LayoutUnit(0), minimumValueForLength(flexBasis, mainAxisContentExtent(), view())); 607 LayoutUnit extent = minimumValueForLength(flexBasis, mainAxisContentExtent(), view()); 608 extent = isColumnFlow() ? child->computeContentBoxLogicalHeight(extent) : child->computeContentBoxLogicalWidth(extent); 609 return std::max(LayoutUnit(0), extent); 613 610 } 614 611 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.h
r124279 r124793 78 78 bool isLeftToRightFlow() const; 79 79 bool isMultiline() const; 80 Length crossAxisLength() const;81 80 Length flexBasisForChild(RenderBox* child) const; 82 81 void setCrossAxisExtent(LayoutUnit);
Note: See TracChangeset
for help on using the changeset viewer.