Changeset 125262 in webkit
- Timestamp:
- Aug 10, 2012 2:06:20 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r125259 r125262 1 2012-08-10 Tony Chang <tony@chromium.org> 2 3 implement display: -webkit-inline-flex 4 https://bugs.webkit.org/show_bug.cgi?id=77772 5 6 Reviewed by Ojan Vafai. 7 8 Include 2 crash tests that caused this to be reverted the last time. 9 10 * css3/flexbox/inline-flex-crash-expected.txt: Added. 11 * css3/flexbox/inline-flex-crash.html: Added. 12 * css3/flexbox/inline-flex-crash2-expected.txt: Added. 13 * css3/flexbox/inline-flex-crash2.html: Added. 14 * css3/flexbox/inline-flex-expected.html: Added. 15 * css3/flexbox/inline-flex.html: Added. 16 1 17 2012-08-10 Zan Dobersek <zandobersek@gmail.com> 2 18 -
trunk/Source/WebCore/ChangeLog
r125261 r125262 1 2012-08-10 Tony Chang <tony@chromium.org> 2 3 implement display: -webkit-inline-flex 4 https://bugs.webkit.org/show_bug.cgi?id=77772 5 6 Reviewed by Ojan Vafai. 7 8 The crashes last time were because we were marking too much of the tree for relayout. During some editing 9 operations, this causes a layout when we're in an inconsistent state. 10 11 Tests: css3/flexbox/inline-flex-crash.html 12 css3/flexbox/inline-flex-crash2.html 13 css3/flexbox/inline-flex.html 14 15 * rendering/RenderFlexibleBox.cpp: 16 (WebCore::RenderFlexibleBox::computeMainAxisPreferredSizes): Only layout the child. 17 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Only layout the child. 18 (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): Only layout the child. 19 * rendering/style/RenderStyle.h: Include INLINE_FLEX as an inline and replaced display type. 20 1 21 2012-08-10 Vineet Chaudhary <rgf748@motorola.com> 2 22 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r125055 r125262 781 781 if (hasOrthogonalFlow(child) && (flexBasisForChild(child).isAuto() || childMainAxisMin.isAuto())) { 782 782 if (!relayoutChildren) 783 child->setChildNeedsLayout(true );783 child->setChildNeedsLayout(true, MarkOnlyThis); 784 784 child->layoutIfNeeded(); 785 785 } … … 1020 1020 setLogicalOverrideSize(child, childPreferredSize); 1021 1021 // FIXME: Can avoid laying out here in some cases. See https://webkit.org/b/87905. 1022 child->setChildNeedsLayout(true );1022 child->setChildNeedsLayout(true, MarkOnlyThis); 1023 1023 child->layoutIfNeeded(); 1024 1024 … … 1244 1244 child->setOverrideLogicalContentHeight(child->logicalHeight() - child->borderAndPaddingLogicalHeight()); 1245 1245 child->setLogicalHeight(0); 1246 child->setChildNeedsLayout(true );1246 child->setChildNeedsLayout(true, MarkOnlyThis); 1247 1247 child->layoutIfNeeded(); 1248 1248 } … … 1251 1251 LayoutUnit childWidth = lineCrossAxisExtent - crossAxisMarginExtentForChild(child); 1252 1252 child->setOverrideLogicalContentWidth(std::max(ZERO_LAYOUT_UNIT, childWidth)); 1253 child->setChildNeedsLayout(true );1253 child->setChildNeedsLayout(true, MarkOnlyThis); 1254 1254 child->layoutIfNeeded(); 1255 1255 } -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r124452 r125262 1741 1741 bool isDisplayReplacedType(EDisplay display) const 1742 1742 { 1743 return display == INLINE_BLOCK || display == INLINE_BOX || display == INLINE_ TABLE || display == INLINE_GRID;1743 return display == INLINE_BLOCK || display == INLINE_BOX || display == INLINE_FLEX || display == INLINE_TABLE || display == INLINE_GRID; 1744 1744 } 1745 1745
Note: See TracChangeset
for help on using the changeset viewer.