haikuwebkit/LayoutTests/css3/flexbox/flex-property-parsing.html

248 lines
10 KiB
HTML
Raw Permalink Normal View History

add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
<!DOCTYPE html>
<html>
<head>
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
<script src="../../resources/js-test.js"></script>
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
</head>
<body>
<div id="flexbox">
<div id="flexitem"></div>
</div>
<script>
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
description('Tests setting the flex propery.');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
var flexbox = document.getElementById("flexbox");
var flexitem = document.getElementById("flexitem");
// Test default value.
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
shouldBeEqualToString('flexitem.style.flex', '');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
// Should not inherit.
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexbox.style.flex = '1 2 3px';
shouldBeEqualToString('flexitem.style.flex', '');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
// Invalid value.
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'junk';
shouldBeEqualToString('flexitem.style.flex', '');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 auto');
flexitem.style.flex = '2';
shouldBeEqualToString('flexitem.style.flex', '2 1 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '2 1 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0';
shouldBeEqualToString('flexitem.style.flex', '0 1 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1.5';
shouldBeEqualToString('flexitem.style.flex', '1.5 1 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1.5 1 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'auto';
shouldBeEqualToString('flexitem.style.flex', '1 1 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 1 auto');
flexitem.style.flex = '1px';
shouldBeEqualToString('flexitem.style.flex', '1 1 1px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 1 1px');
flexitem.style.flex = '2em';
shouldBeEqualToString('flexitem.style.flex', '1 1 2em');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 1 32px');
flexitem.style.flex = '0px';
shouldBeEqualToString('flexitem.style.flex', '1 1 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 1 0px');
flexitem.style.flex = 'none';
flexitem.style.flex = '-2'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '0 0';
shouldBeEqualToString('flexitem.style.flex', '0 0 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 1';
shouldBeEqualToString('flexitem.style.flex', '0 1 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 0';
shouldBeEqualToString('flexitem.style.flex', '1 0 0%');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 0 0%');
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '2 auto';
shouldBeEqualToString('flexitem.style.flex', '2 1 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '2 1 auto');
flexitem.style.flex = '3 4px';
shouldBeEqualToString('flexitem.style.flex', '3 1 4px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '3 1 4px');
flexitem.style.flex = 'auto 5.25';
shouldBeEqualToString('flexitem.style.flex', '5.25 1 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '5.25 1 auto');
flexitem.style.flex = '6em 4';
shouldBeEqualToString('flexitem.style.flex', '4 1 6em');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '4 1 96px');
flexitem.style.flex = '4 0px';
shouldBeEqualToString('flexitem.style.flex', '4 1 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '4 1 0px');
flexitem.style.flex = '0 0px';
shouldBeEqualToString('flexitem.style.flex', '0 1 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 0px');
flexitem.style.flex = 'none';
flexitem.style.flex = '-1 5'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '1 -1'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '-1 -1'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = 'auto 2em'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '2px 4px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '0px 0px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
flexitem.style.flex = '1 2 0';
shouldBeEqualToString('flexitem.style.flex', '1 2 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 2 0px');
flexitem.style.flex = '0 0 0';
shouldBeEqualToString('flexitem.style.flex', '0 0 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 0px');
flexitem.style.flex = '1 2 auto';
shouldBeEqualToString('flexitem.style.flex', '1 2 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 2 auto');
flexitem.style.flex = '1.75 2 3px';
shouldBeEqualToString('flexitem.style.flex', '1.75 2 3px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1.75 2 3px');
flexitem.style.flex = '1 3px 2'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '1.75 2 3px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1.75 2 3px');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 auto 1'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '1.75 2 3px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1.75 2 3px');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '3px 1 2';
shouldBeEqualToString('flexitem.style.flex', '1 2 3px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 2 3px');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'calc(20px + 40%) 4 3';
calc() serialization doesn't match the spec https://bugs.webkit.org/show_bug.cgi?id=203442 LayoutTests/imported/w3c: <rdar://problem/56639402> Reviewed by Dean Jackson. New results. Current WPT don't reflect the new serialization rules yet, so we expect some failing results here. * web-platform-tests/css/css-align/gaps/column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-box/parsing/padding-valid-expected.txt: * web-platform-tests/css/css-shapes/animation/shape-outside-interpolation-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-margin-003-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-010-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-011-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-010-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-011-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-008-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-009-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-polygon-006-expected.txt: * web-platform-tests/css/css-values/calc-background-position-002-expected.txt: * web-platform-tests/css/css-values/calc-background-position-003-expected.txt: * web-platform-tests/css/css-values/calc-nesting-002-expected.txt: * web-platform-tests/css/css-values/calc-serialization-002-expected.txt: * web-platform-tests/css/css-values/calc-serialization-expected.txt: * web-platform-tests/css/css-values/minmax-angle-computed-expected.txt: * web-platform-tests/css/css-values/minmax-angle-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-length-percent-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-length-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-percentage-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-time-computed-expected.txt: * web-platform-tests/css/css-values/minmax-time-serialize-expected.txt: Source/WebCore: <rdar://problem/56639402> Reviewed by Dean Jackson. These changes implement the calc() simplification and serialization rules described in https://drafts.csswg.org/css-values-4/#calc-internal. They also make it easy to add the new math functions in future. The major changes are: 1. Create Negate and Invert nodes to handle subtraction and division, so that Product and Sum are the only math operators that are tracked, which makes it possible to sort child nodes for simplification. 2. After parsing, do a bottom-up simplification parse following <https://drafts.csswg.org/css-values-4/#calc-simplification>, which sorts child nodes according to <https://drafts.csswg.org/css-values-4/#sort-a-calculations-children>, combines child nodes where possible, and hoists child nodes up to their parents were possible. Simplification always preserves a calc-like function at the root. This simplification also does unit canonicalization (e.g. all absolute lengths get px units). To make unit conversion more explicit, pass a CSSUnitType into doubleValue() methods so that it's clear what units the resulting value is in. 3. Serialize according to <https://drafts.csswg.org/css-values-4/#calc-serialize> which fixes bugs with nested parentheses. This patch does not completely implement the type checking and conversion rules described in <https://drafts.csswg.org/css-values-4/#calc-type-checking> and <https://drafts.css-houdini.org/css-typed-om-1/#numeric-typing>. Tests: fast/css/calc-parsing-limits.html fast/css/calc-parsing.html * css/CSSCalculationValue.cpp: (WebCore::calculationCategoryForCombination): (WebCore::canonicalUnitTypeForCalculationCategory): (WebCore::functionFromOperator): (WebCore::CSSCalcPrimitiveValueNode::isNumericValue const): (WebCore::CSSCalcPrimitiveValueNode::isNegative const): (WebCore::CSSCalcPrimitiveValueNode::negate): (WebCore::CSSCalcPrimitiveValueNode::invert): (WebCore::CSSCalcPrimitiveValueNode::add): (WebCore::CSSCalcPrimitiveValueNode::multiply): (WebCore::CSSCalcPrimitiveValueNode::convertToUnitType): (WebCore::CSSCalcPrimitiveValueNode::canonicalizeUnit): (WebCore::CSSCalcPrimitiveValueNode::doubleValue const): (WebCore::CSSCalcNegateNode::createCalcExpression const): (WebCore::CSSCalcNegateNode::dump const): (WebCore::CSSCalcInvertNode::createCalcExpression const): (WebCore::CSSCalcInvertNode::dump const): (WebCore::categoryForInvert): (WebCore::determineCategory): (WebCore::CSSCalcOperationNode::create): (WebCore::CSSCalcOperationNode::createSum): (WebCore::CSSCalcOperationNode::createProduct): (WebCore::CSSCalcOperationNode::hoistChildrenWithOperator): (WebCore::sortingCategoryForType): (WebCore::sortingCategory): (WebCore::primitiveTypeForCombination): (WebCore::conversionToAddValuesWithTypes): (WebCore::CSSCalcOperationNode::canCombineAllChildren const): (WebCore::CSSCalcOperationNode::combineChildren): (WebCore::CSSCalcOperationNode::simplify): (WebCore::CSSCalcOperationNode::simplifyRecursive): (WebCore::CSSCalcOperationNode::simplifyNode): (WebCore::CSSCalcOperationNode::primitiveType const): (WebCore::CSSCalcOperationNode::doubleValue const): (WebCore::CSSCalcOperationNode::computeLengthPx const): (WebCore::CSSCalcOperationNode::buildCSSText): (WebCore::functionPrefixForOperator): (WebCore::CSSCalcOperationNode::buildCSSTextRecursive): (WebCore::CSSCalcOperationNode::evaluateOperator): (WebCore::CSSCalcExpressionNodeParser::parseCalc): (WebCore::checkDepthAndIndex): (WebCore::CSSCalcExpressionNodeParser::parseCalcFunction): (WebCore::CSSCalcExpressionNodeParser::parseValue): (WebCore::CSSCalcExpressionNodeParser::parseCalcValue): (WebCore::CSSCalcExpressionNodeParser::parseCalcProduct): (WebCore::CSSCalcExpressionNodeParser::parseCalcSum): (WebCore::createCSS): (WebCore::CSSCalcValue::customCSSText const): (WebCore::CSSCalcValue::doubleValue const): (WebCore::CSSCalcValue::create): (WebCore::CSSCalcOperationNode::createSimplified): Deleted. (WebCore::CSSCalcOperationNode::buildCssText): Deleted. (WebCore::CSSCalcOperationNode::customCSSText const): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueTerm): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueMultiplicativeExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseAdditiveValueExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseMinMaxExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueExpression): Deleted. * css/CSSCalculationValue.h: * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::unitTypeString): * css/CSSPrimitiveValue.h: * platform/CalculationValue.cpp: (WebCore::CalcExpressionNegation::evaluate const): (WebCore::CalcExpressionNegation::operator== const): (WebCore::CalcExpressionNegation::dump const): (WebCore::operator==): (WebCore::CalcExpressionInversion::evaluate const): (WebCore::CalcExpressionInversion::dump const): (WebCore::CalcExpressionInversion::operator== const): (WebCore::CalcExpressionOperation::evaluate const): (WebCore::operator<<): * platform/CalculationValue.h: LayoutTests: Reviewed by Dean Jackson. New results, mainly because of new simplification rules. * css3/calc/cssom-expected.txt: * css3/calc/simplification-expected.txt: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/scroll-snap/scroll-snap-property-computed-style-expected.txt: * css3/scroll-snap/scroll-snap-property-computed-style.js: * css3/scroll-snap/scroll-snap-property-parsing-expected.txt: * css3/scroll-snap/scroll-snap-property-parsing.js: * css3/shapes/shape-outside/values/support/parsing-utils.js: * fast/css-grid-layout/grid-columns-rows-get-set-expected.txt: * fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt: * fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt: * fast/css-grid-layout/non-grid-columns-rows-get-set-multiple-expected.txt: * fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js: * fast/css-grid-layout/resources/grid-columns-rows-get-set.js: * fast/css-grid-layout/resources/non-grid-columns-rows-get-set-multiple.js: * fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js: * fast/css/calc-parsing-expected.txt: Added. * fast/css/calc-parsing-limits-expected.txt: Added. * fast/css/calc-parsing-limits.html: Added. * fast/css/calc-parsing.html: Added. * fast/css/calc-with-angle-time-frequency-expected.txt: * fast/css/calc-with-angle-time-frequency.html: * fast/css/column-width-calculated-value-expected.txt: * fast/css/column-width-calculated-value.html: * fast/css/turn-angle-double-expected.txt: * fast/css/turn-angle-double.html: * fast/shapes/parsing/parsing-shape-outside-expected.txt: * fast/shapes/parsing/parsing-test-utils.js: Canonical link: https://commits.webkit.org/218041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@253079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-12-04 02:22:35 +00:00
shouldBeEqualToString('flexitem.style.flex', '4 3 calc(40% + 20px)');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '4 3 calc(40% + 20px)');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 2 calc(10px + 50%)';
calc() serialization doesn't match the spec https://bugs.webkit.org/show_bug.cgi?id=203442 LayoutTests/imported/w3c: <rdar://problem/56639402> Reviewed by Dean Jackson. New results. Current WPT don't reflect the new serialization rules yet, so we expect some failing results here. * web-platform-tests/css/css-align/gaps/column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-box/parsing/padding-valid-expected.txt: * web-platform-tests/css/css-shapes/animation/shape-outside-interpolation-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-margin-003-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-010-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-011-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-010-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-011-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-008-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-009-expected.txt: * web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-polygon-006-expected.txt: * web-platform-tests/css/css-values/calc-background-position-002-expected.txt: * web-platform-tests/css/css-values/calc-background-position-003-expected.txt: * web-platform-tests/css/css-values/calc-nesting-002-expected.txt: * web-platform-tests/css/css-values/calc-serialization-002-expected.txt: * web-platform-tests/css/css-values/calc-serialization-expected.txt: * web-platform-tests/css/css-values/minmax-angle-computed-expected.txt: * web-platform-tests/css/css-values/minmax-angle-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-length-percent-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-length-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-percentage-serialize-expected.txt: * web-platform-tests/css/css-values/minmax-time-computed-expected.txt: * web-platform-tests/css/css-values/minmax-time-serialize-expected.txt: Source/WebCore: <rdar://problem/56639402> Reviewed by Dean Jackson. These changes implement the calc() simplification and serialization rules described in https://drafts.csswg.org/css-values-4/#calc-internal. They also make it easy to add the new math functions in future. The major changes are: 1. Create Negate and Invert nodes to handle subtraction and division, so that Product and Sum are the only math operators that are tracked, which makes it possible to sort child nodes for simplification. 2. After parsing, do a bottom-up simplification parse following <https://drafts.csswg.org/css-values-4/#calc-simplification>, which sorts child nodes according to <https://drafts.csswg.org/css-values-4/#sort-a-calculations-children>, combines child nodes where possible, and hoists child nodes up to their parents were possible. Simplification always preserves a calc-like function at the root. This simplification also does unit canonicalization (e.g. all absolute lengths get px units). To make unit conversion more explicit, pass a CSSUnitType into doubleValue() methods so that it's clear what units the resulting value is in. 3. Serialize according to <https://drafts.csswg.org/css-values-4/#calc-serialize> which fixes bugs with nested parentheses. This patch does not completely implement the type checking and conversion rules described in <https://drafts.csswg.org/css-values-4/#calc-type-checking> and <https://drafts.css-houdini.org/css-typed-om-1/#numeric-typing>. Tests: fast/css/calc-parsing-limits.html fast/css/calc-parsing.html * css/CSSCalculationValue.cpp: (WebCore::calculationCategoryForCombination): (WebCore::canonicalUnitTypeForCalculationCategory): (WebCore::functionFromOperator): (WebCore::CSSCalcPrimitiveValueNode::isNumericValue const): (WebCore::CSSCalcPrimitiveValueNode::isNegative const): (WebCore::CSSCalcPrimitiveValueNode::negate): (WebCore::CSSCalcPrimitiveValueNode::invert): (WebCore::CSSCalcPrimitiveValueNode::add): (WebCore::CSSCalcPrimitiveValueNode::multiply): (WebCore::CSSCalcPrimitiveValueNode::convertToUnitType): (WebCore::CSSCalcPrimitiveValueNode::canonicalizeUnit): (WebCore::CSSCalcPrimitiveValueNode::doubleValue const): (WebCore::CSSCalcNegateNode::createCalcExpression const): (WebCore::CSSCalcNegateNode::dump const): (WebCore::CSSCalcInvertNode::createCalcExpression const): (WebCore::CSSCalcInvertNode::dump const): (WebCore::categoryForInvert): (WebCore::determineCategory): (WebCore::CSSCalcOperationNode::create): (WebCore::CSSCalcOperationNode::createSum): (WebCore::CSSCalcOperationNode::createProduct): (WebCore::CSSCalcOperationNode::hoistChildrenWithOperator): (WebCore::sortingCategoryForType): (WebCore::sortingCategory): (WebCore::primitiveTypeForCombination): (WebCore::conversionToAddValuesWithTypes): (WebCore::CSSCalcOperationNode::canCombineAllChildren const): (WebCore::CSSCalcOperationNode::combineChildren): (WebCore::CSSCalcOperationNode::simplify): (WebCore::CSSCalcOperationNode::simplifyRecursive): (WebCore::CSSCalcOperationNode::simplifyNode): (WebCore::CSSCalcOperationNode::primitiveType const): (WebCore::CSSCalcOperationNode::doubleValue const): (WebCore::CSSCalcOperationNode::computeLengthPx const): (WebCore::CSSCalcOperationNode::buildCSSText): (WebCore::functionPrefixForOperator): (WebCore::CSSCalcOperationNode::buildCSSTextRecursive): (WebCore::CSSCalcOperationNode::evaluateOperator): (WebCore::CSSCalcExpressionNodeParser::parseCalc): (WebCore::checkDepthAndIndex): (WebCore::CSSCalcExpressionNodeParser::parseCalcFunction): (WebCore::CSSCalcExpressionNodeParser::parseValue): (WebCore::CSSCalcExpressionNodeParser::parseCalcValue): (WebCore::CSSCalcExpressionNodeParser::parseCalcProduct): (WebCore::CSSCalcExpressionNodeParser::parseCalcSum): (WebCore::createCSS): (WebCore::CSSCalcValue::customCSSText const): (WebCore::CSSCalcValue::doubleValue const): (WebCore::CSSCalcValue::create): (WebCore::CSSCalcOperationNode::createSimplified): Deleted. (WebCore::CSSCalcOperationNode::buildCssText): Deleted. (WebCore::CSSCalcOperationNode::customCSSText const): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueTerm): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueMultiplicativeExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseAdditiveValueExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseMinMaxExpression): Deleted. (WebCore::CSSCalcExpressionNodeParser::parseValueExpression): Deleted. * css/CSSCalculationValue.h: * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::unitTypeString): * css/CSSPrimitiveValue.h: * platform/CalculationValue.cpp: (WebCore::CalcExpressionNegation::evaluate const): (WebCore::CalcExpressionNegation::operator== const): (WebCore::CalcExpressionNegation::dump const): (WebCore::operator==): (WebCore::CalcExpressionInversion::evaluate const): (WebCore::CalcExpressionInversion::dump const): (WebCore::CalcExpressionInversion::operator== const): (WebCore::CalcExpressionOperation::evaluate const): (WebCore::operator<<): * platform/CalculationValue.h: LayoutTests: Reviewed by Dean Jackson. New results, mainly because of new simplification rules. * css3/calc/cssom-expected.txt: * css3/calc/simplification-expected.txt: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/scroll-snap/scroll-snap-property-computed-style-expected.txt: * css3/scroll-snap/scroll-snap-property-computed-style.js: * css3/scroll-snap/scroll-snap-property-parsing-expected.txt: * css3/scroll-snap/scroll-snap-property-parsing.js: * css3/shapes/shape-outside/values/support/parsing-utils.js: * fast/css-grid-layout/grid-columns-rows-get-set-expected.txt: * fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt: * fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt: * fast/css-grid-layout/non-grid-columns-rows-get-set-multiple-expected.txt: * fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js: * fast/css-grid-layout/resources/grid-columns-rows-get-set.js: * fast/css-grid-layout/resources/non-grid-columns-rows-get-set-multiple.js: * fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js: * fast/css/calc-parsing-expected.txt: Added. * fast/css/calc-parsing-limits-expected.txt: Added. * fast/css/calc-parsing-limits.html: Added. * fast/css/calc-parsing.html: Added. * fast/css/calc-with-angle-time-frequency-expected.txt: * fast/css/calc-with-angle-time-frequency.html: * fast/css/column-width-calculated-value-expected.txt: * fast/css/column-width-calculated-value.html: * fast/css/turn-angle-double-expected.txt: * fast/css/turn-angle-double.html: * fast/shapes/parsing/parsing-shape-outside-expected.txt: * fast/shapes/parsing/parsing-test-utils.js: Canonical link: https://commits.webkit.org/218041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@253079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-12-04 02:22:35 +00:00
shouldBeEqualToString('flexitem.style.flex', '1 2 calc(50% + 10px)');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '1 2 calc(50% + 10px)');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'auto 0 0';
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'auto 0';
shouldBeEqualToString('flexitem.style.flex', '0 1 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 auto');
initial flex value should be 1 1 auto https://bugs.webkit.org/show_bug.cgi?id=86526 Source/WebCore: Reviewed by Ojan Vafai. Also, if -webkit-flex is used to set the positive flex to 0 and the negative flex is omitted, the negative flex is set to 0. New test cases in: flex-property-parsing.html * css/CSSParser.cpp: (WebCore::CSSParser::parseFlex): * css/StyleBuilder.cpp: (WebCore::ApplyPropertyFlex::applyValue): * rendering/style/RenderStyle.h: LayoutTests: In most tests, I added a CSS rule to default -webkit-flex: none. In a few tests, -webkit-flex didn't include the negative flex value and it was becoming 1, causing negative flexing. I fixed those by explicitly stating the negative flex as 0. Reviewed by Ojan Vafai. * css3/flexbox/align-absolute-child.html: * css3/flexbox/auto-margins.html: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-pack.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-pack.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/nested-stretch.html: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/position-absolute-child.html: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/true-centering.html: * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/mac/svg/css/getComputedStyle-basic-expected.txt: * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/105871@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-01 03:32:47 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'auto 3';
shouldBeEqualToString('flexitem.style.flex', '3 1 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '3 1 auto');
initial flex value should be 1 1 auto https://bugs.webkit.org/show_bug.cgi?id=86526 Source/WebCore: Reviewed by Ojan Vafai. Also, if -webkit-flex is used to set the positive flex to 0 and the negative flex is omitted, the negative flex is set to 0. New test cases in: flex-property-parsing.html * css/CSSParser.cpp: (WebCore::CSSParser::parseFlex): * css/StyleBuilder.cpp: (WebCore::ApplyPropertyFlex::applyValue): * rendering/style/RenderStyle.h: LayoutTests: In most tests, I added a CSS rule to default -webkit-flex: none. In a few tests, -webkit-flex didn't include the negative flex value and it was becoming 1, causing negative flexing. I fixed those by explicitly stating the negative flex as 0. Reviewed by Ojan Vafai. * css3/flexbox/align-absolute-child.html: * css3/flexbox/auto-margins.html: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-pack.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-pack.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/nested-stretch.html: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/position-absolute-child.html: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/true-centering.html: * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/mac/svg/css/getComputedStyle-basic-expected.txt: * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/105871@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-01 03:32:47 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0px 0';
shouldBeEqualToString('flexitem.style.flex', '0 1 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 0px');
initial flex value should be 1 1 auto https://bugs.webkit.org/show_bug.cgi?id=86526 Source/WebCore: Reviewed by Ojan Vafai. Also, if -webkit-flex is used to set the positive flex to 0 and the negative flex is omitted, the negative flex is set to 0. New test cases in: flex-property-parsing.html * css/CSSParser.cpp: (WebCore::CSSParser::parseFlex): * css/StyleBuilder.cpp: (WebCore::ApplyPropertyFlex::applyValue): * rendering/style/RenderStyle.h: LayoutTests: In most tests, I added a CSS rule to default -webkit-flex: none. In a few tests, -webkit-flex didn't include the negative flex value and it was becoming 1, causing negative flexing. I fixed those by explicitly stating the negative flex as 0. Reviewed by Ojan Vafai. * css3/flexbox/align-absolute-child.html: * css3/flexbox/auto-margins.html: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-pack.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-pack.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/nested-stretch.html: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/position-absolute-child.html: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/true-centering.html: * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-linux-x86/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-linux/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-leopard/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac-leopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-vista/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win-xp/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/gtk/fast/css/getComputedStyle/computed-style-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/mac/svg/css/getComputedStyle-basic-expected.txt: * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/105871@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-01 03:32:47 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0px 0'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 1 0px');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 0px');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'none';
flexitem.style.flex = '1 2 3'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 2 3'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 0 3'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0 1'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 -2 3px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 2px 3px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1 2px auto'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0px 0px 0'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0 0 0'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0 0px 0'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0 0px 0px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '0 0 0px 0'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1, 2, 3px'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = '1,'; // Invalid, return previous value.
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
flexitem.style.flex = 'initial';
shouldBeEqualToString('flexitem.style.flex', 'initial');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 1 auto');
flexitem.style.flex = 'none';
Split flex into flex-grow/flex-shrink/flex-basis https://bugs.webkit.org/show_bug.cgi?id=86525 Reviewed by Ojan Vafai. Source/WebCore: Split flex into 3 separate properties per the spec: http://dev.w3.org/csswg/css3-flexbox/#flex-components Tests: css3/flexbox/flex-longhand-parsing.html css3/flexbox/flex-property-parsing.html: Updated test results. * css/CSSComputedStyleDeclaration.cpp: (WebCore): -webkit-flex is no longer enumerable. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Add new css property names and use getCSSPropertyValuesForShorthandProperties for WebkitFlex. Also sort flex propery names. * css/CSSParser.cpp: (WebCore::isValidKeywordPropertyAndValue): Fix indent. (WebCore::CSSParser::parseValue): Add parsing for new properties and handle -webkit-flex: none. (WebCore::CSSParser::parseFlex): Switch to new names (positive -> grow, negative -> shrink, preferred size -> basis) and assign to longhand properties. * css/CSSParser.h: * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): Add new properties. * css/CSSPropertyNames.in: Add new properties. * css/StyleBuilder.cpp: (WebCore::StyleBuilder::StyleBuilder): Delete special handling of applying flex and just use shorthand handlers. * css/StylePropertySet.cpp: (WebCore::StylePropertySet::getPropertyValue): Add new shorthand. (WebCore::StylePropertySet::asText): * css/StylePropertyShorthand.cpp: (WebCore::webkitFlexShorthand): Add new shorthand. (WebCore::shorthandForProperty): * css/StylePropertyShorthand.h: * css/StyleResolver.cpp: (WebCore::StyleResolver::collectMatchingRulesForList): Add to list of properties applied by StyleBuilder. Handle initial and inherit for flex. LayoutTests: If -webkit-flex is set to none, when the user reads the value back out, it is now 0 0 auto. 'none' is for convenience, not an actual value. * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: Test flex-grow, flex-shrink and flex-basis. * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: Update results for 'none'. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * fast/css/getComputedStyle/resources/property-names.js: Remove -webkit-flex since it's no longer enumerable. * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/108010@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@121442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-28 18:06:09 +00:00
// FIXME: This test case is failing. https://bugs.webkit.org/show_bug.cgi?id=90020
Update flexbox to Blink's tip of tree https://bugs.webkit.org/show_bug.cgi?id=168657 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in css3/flexbox. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * rendering/FlexibleBoxAlgorithm.cpp: Added. (WebCore::FlexItem::FlexItem): (WebCore::FlexLayoutAlgorithm::FlexLayoutAlgorithm): (WebCore::FlexLayoutAlgorithm::computeNextFlexLine): * rendering/FlexibleBoxAlgorithm.h: Added. (WebCore::FlexItem::hypotheticalMainAxisMarginBoxSize): (WebCore::FlexItem::flexBaseMarginBoxSize): (WebCore::FlexItem::flexedMarginBoxSize): (WebCore::FlexLayoutAlgorithm::isMultiline): * rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithm::computeTrackBasedSize): (WebCore::GridTrackSizingAlgorithm::increaseSizesToAccommodateSpanningItems): (WebCore::GridTrackSizingAlgorithm::assumedRowsSizeForOrthogonalChild): (WebCore::GridTrackSizingAlgorithm::gridAreaBreadthForChild): (WebCore::IndefiniteSizeStrategy::recomputeUsedFlexFractionIfNeeded): * rendering/GridTrackSizingAlgorithm.h: * rendering/OrderIterator.cpp: (WebCore::OrderIterator::next): (WebCore::OrderIterator::reset): (WebCore::OrderIteratorPopulator::~OrderIteratorPopulator): (WebCore::OrderIteratorPopulator::collectChild): (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): Deleted. (WebCore::OrderIteratorPopulator::removeDuplicatedOrderValues): Deleted. * rendering/OrderIterator.h: (WebCore::OrderIteratorPopulator::OrderIteratorPopulator): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): (WebCore::RenderBlock::computeChildPreferredLogicalWidths): (WebCore::RenderBlock::hasDefiniteLogicalHeight): (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation): * rendering/RenderBlock.h: (WebCore::RenderBlock::hasPercentHeightDescendants): * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths): * rendering/RenderBox.cpp: (WebCore::RenderBox::columnFlexItemHasStretchAlignment): (WebCore::RenderBox::isStretchingColumnFlexItem): (WebCore::RenderBox::hasStretchedLogicalWidth): (WebCore::RenderBox::sizesLogicalWidthToFitContent): (WebCore::RenderBox::computeInlineDirectionMargins): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem): (WebCore::RenderBox::updateLogicalHeight): (WebCore::RenderBox::computeLogicalHeightWithoutLayout): (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation): (WebCore::RenderBox::shouldTreatChildAsReplacedInTableCells): (WebCore::tableCellShouldHaveZeroInitialSize): (WebCore::RenderBox::computePercentageLogicalHeight): (WebCore::RenderBox::computeReplacedLogicalHeightUsing): (WebCore::RenderBox::availableLogicalHeightUsing): (WebCore::RenderBox::percentageLogicalHeightIsResolvable): (WebCore::RenderBox::hasUnsplittableScrollingOverflow): (WebCore::flexItemHasStretchAlignment): Deleted. (WebCore::isStretchingColumnFlexItem): Deleted. (WebCore::logicalWidthIsResolvable): Deleted. (WebCore::RenderBox::hasDefiniteLogicalWidth): Deleted. (WebCore::percentageLogicalHeightIsResolvable): Deleted. (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Deleted. (WebCore::RenderBox::hasDefiniteLogicalHeight): Deleted. * rendering/RenderBox.h: (WebCore::RenderBox::isGridItem): (WebCore::RenderBox::isFlexItem): (WebCore::RenderBox::selfAlignmentNormalBehavior): * rendering/RenderBoxModelObject.cpp: (WebCore::isOutOfFlowPositionedWithImplicitHeight): (WebCore::RenderBoxModelObject::containingBlockForAutoHeightDetection): (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::removeChildInternal): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::LineContext::LineContext): (WebCore::RenderFlexibleBox::RenderFlexibleBox): (WebCore::RenderFlexibleBox::computeIntrinsicLogicalWidths): (WebCore::contentAlignmentNormalBehavior): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutBlock): (WebCore::RenderFlexibleBox::repositionLogicalHeightDependentFlexItems): (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): (WebCore::RenderFlexibleBox::hasOrthogonalFlow): (WebCore::RenderFlexibleBox::flexBasisForChild): (WebCore::RenderFlexibleBox::crossAxisExtentForChild): (WebCore::RenderFlexibleBox::cachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::setCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::clearCachedChildIntrinsicContentLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalHeight): (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth): (WebCore::RenderFlexibleBox::crossAxisIntrinsicExtentForChild): (WebCore::RenderFlexibleBox::mainAxisExtentForChild): (WebCore::RenderFlexibleBox::mainAxisContentExtentForChildIncludingScrollbar): (WebCore::RenderFlexibleBox::crossAxisExtent): (WebCore::RenderFlexibleBox::mainAxisExtent): (WebCore::RenderFlexibleBox::mainAxisContentExtent): (WebCore::RenderFlexibleBox::computeMainAxisExtentForChild): (WebCore::RenderFlexibleBox::transformedWritingMode): (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild): (WebCore::RenderFlexibleBox::flowAwareMarginEndForChild): (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild): (WebCore::RenderFlexibleBox::crossAxisMarginExtentForChild): (WebCore::RenderFlexibleBox::flowAwareLocationForChild): (WebCore::RenderFlexibleBox::useChildAspectRatio): (WebCore::RenderFlexibleBox::computeMainSizeFromAspectRatioUsing): (WebCore::RenderFlexibleBox::setFlowAwareLocationForChild): (WebCore::RenderFlexibleBox::mainAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::crossAxisLengthIsDefinite): (WebCore::RenderFlexibleBox::cacheChildMainSize): (WebCore::RenderFlexibleBox::clearCachedMainSizeForChild): (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild): (WebCore::RenderFlexibleBox::layoutFlexItems): (WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis): (WebCore::RenderFlexibleBox::updateAutoMarginsInMainAxis): (WebCore::RenderFlexibleBox::hasAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::availableAlignmentSpaceForChild): (WebCore::RenderFlexibleBox::updateAutoMarginsInCrossAxis): (WebCore::RenderFlexibleBox::marginBoxAscentForChild): (WebCore::RenderFlexibleBox::computeChildMarginValue): (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution): (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): (WebCore::RenderFlexibleBox::childLogicalHeightForPercentageResolution): (WebCore::RenderFlexibleBox::adjustChildSizeForAspectRatioCrossAxisMinAndMax): (WebCore::RenderFlexibleBox::constructFlexItem): (WebCore::RenderFlexibleBox::freezeViolations): (WebCore::RenderFlexibleBox::freezeInflexibleItems): (WebCore::RenderFlexibleBox::resolveFlexibleLengths): (WebCore::alignmentOffset): (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild): (WebCore::RenderFlexibleBox::staticMainAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticCrossAxisPositionForPositionedChild): (WebCore::RenderFlexibleBox::staticInlinePositionForPositionedChild): (WebCore::RenderFlexibleBox::staticBlockPositionForPositionedChild): (WebCore::RenderFlexibleBox::setStaticPositionForPositionedLayout): (WebCore::RenderFlexibleBox::prepareChildForPositionedLayout): (WebCore::RenderFlexibleBox::alignmentForChild): (WebCore::RenderFlexibleBox::resetAutoMarginsAndLogicalTopInCrossAxis): (WebCore::RenderFlexibleBox::needToStretchChildLogicalHeight): (WebCore::RenderFlexibleBox::childHasIntrinsicMainAxisSize): (WebCore::RenderFlexibleBox::crossAxisOverflowForChild): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): (WebCore::RenderFlexibleBox::layoutColumnReverse): (WebCore::initialAlignContentOffset): (WebCore::alignContentSpaceBetweenChildren): (WebCore::RenderFlexibleBox::alignFlexLines): (WebCore::RenderFlexibleBox::adjustAlignmentForChild): (WebCore::RenderFlexibleBox::alignChildren): (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild): (WebCore::RenderFlexibleBox::flipForRightToLeftColumn): (WebCore::RenderFlexibleBox::flipForWrapReverse): (WebCore::RenderFlexibleBox::Violation::Violation): Deleted. (WebCore::RenderFlexibleBox::setCrossAxisExtent): Deleted. (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild): Deleted. (WebCore::RenderFlexibleBox::mainAxisScrollbarExtentForChild): Deleted. (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Deleted. (WebCore::RenderFlexibleBox::computeNextFlexLine): Deleted. (WebCore::RenderFlexibleBox::setLogicalOverrideSize): Deleted. (WebCore::RenderFlexibleBox::numberOfInFlowPositionedChildren): Deleted. (WebCore::RenderFlexibleBox::needToStretchChild): Deleted. (WebCore::contentAlignmentNormalBehaviorFlexibleBox): Deleted. * rendering/RenderFlexibleBox.h: (WebCore::RenderFlexibleBox::orderIterator): (WebCore::RenderFlexibleBox::isFlexibleBoxImpl): * rendering/RenderFullScreen.h: * rendering/RenderGrid.cpp: (WebCore::selfAlignmentChangedToStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInRowAxis): (WebCore::selfAlignmentChangedFromStretchInColumnAxis): (WebCore::RenderGrid::styleDidChange): (WebCore::RenderGrid::computeTrackBasedLogicalHeight): (WebCore::RenderGrid::computeTrackSizesForDefiniteSize): (WebCore::RenderGrid::gridGapForDirection): (WebCore::RenderGrid::guttersSize): (WebCore::RenderGrid::computeTrackSizesForIndefiniteSize): (WebCore::RenderGrid::computeAutoRepeatTracksCount): (WebCore::RenderGrid::trackSizesForComputedStyle): (WebCore::RenderGrid::offsetAndBreadthForPositionedChild): (WebCore::RenderGrid::populateGridPositionsForDirection): (WebCore::RenderGrid::alignSelfForChild): (WebCore::RenderGrid::justifySelfForChild): (WebCore::RenderGrid::columnAxisPositionForChild): (WebCore::RenderGrid::rowAxisPositionForChild): (WebCore::RenderGrid::columnAxisOffsetForChild): (WebCore::RenderGrid::rowAxisOffsetForChild): (WebCore::RenderGrid::needToStretchChildLogicalHeight): Deleted. * rendering/RenderGrid.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollbarsAfterLayout): * rendering/RenderListBox.cpp: (WebCore::RenderListBox::computeLogicalHeight): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::layout): * rendering/RenderTableSection.cpp: (WebCore::shouldFlexCellChild): (WebCore::RenderTableSection::relayoutCellIfFlexed): (WebCore::RenderTableSection::layoutRows): * rendering/RenderTableSection.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::computeLogicalHeight): * rendering/style/RenderStyle.cpp: (WebCore::resolvedSelfAlignment): (WebCore::RenderStyle::resolvedAlignSelf): (WebCore::RenderStyle::resolvedJustifySelf): * rendering/style/RenderStyle.h: * style/RenderTreeUpdater.cpp: (WebCore::textRendererIsNeeded): LayoutTests: * css3/flexbox/align-absolute-child-expected.txt: * css3/flexbox/align-absolute-child.html: * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line-expected.txt: Added. * css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html: Added. * css3/flexbox/anonymous-block-merge-crash.html: * css3/flexbox/assert-generated-new-flexbox-expected.txt: Added. * css3/flexbox/assert-generated-new-flexbox.html: Added. * css3/flexbox/auto-height-dynamic-expected.txt: * css3/flexbox/auto-height-dynamic.html: * css3/flexbox/auto-height-with-flex-expected.html: Added. * css3/flexbox/auto-height-with-flex.html: Added. * css3/flexbox/auto-margins-expected.html: Removed. * css3/flexbox/auto-margins.html: Removed. * css3/flexbox/border-and-padding-abspos-expected.txt: Added. * css3/flexbox/border-and-padding-abspos.html: Added. * css3/flexbox/box-orient-button-expected.txt: Added. * css3/flexbox/box-orient-button.html: Added. * css3/flexbox/box-sizing-expected.txt: * css3/flexbox/box-sizing-min-max-sizes-expected.txt: * css3/flexbox/box-sizing-min-max-sizes.html: * css3/flexbox/box-sizing.html: * css3/flexbox/bug527039-expected.txt: Added. * css3/flexbox/bug527039.html: Added. * css3/flexbox/bug580586-expected.txt: Added. * css3/flexbox/bug580586.html: Added. * css3/flexbox/bug604346-expected.html: Added. * css3/flexbox/bug604346.html: Added. * css3/flexbox/bug605682-expected.txt: Added. * css3/flexbox/bug605682.html: Added. * css3/flexbox/bug633212-expected.txt: Added. * css3/flexbox/bug633212.html: Added. * css3/flexbox/bug646288-expected.txt: Added. * css3/flexbox/bug646288.html: Added. * css3/flexbox/bug669714-expected.txt: Added. * css3/flexbox/bug669714.html: Added. * css3/flexbox/canvas-dynamic-change-expected.txt: Added. * css3/flexbox/canvas-dynamic-change.html: Added. * css3/flexbox/change-flexitem-into-abspos-expected.txt: Added. * css3/flexbox/change-flexitem-into-abspos.html: Added. * css3/flexbox/child-overflow-expected.html: * css3/flexbox/child-overflow.html: * css3/flexbox/column-flex-child-with-overflow-scroll-expected.txt: Added. * css3/flexbox/column-flex-child-with-overflow-scroll.html: Added. * css3/flexbox/columns-auto-size.html: * css3/flexbox/columns-center-with-margins-and-wrap-expected.html: Added. * css3/flexbox/columns-center-with-margins-and-wrap.html: Added. * css3/flexbox/columns-center-with-margins-expected.html: Added. * css3/flexbox/columns-center-with-margins.html: Added. * css3/flexbox/columns-height-set-via-top-bottom-expected.txt: * css3/flexbox/columns-height-set-via-top-bottom.html: * css3/flexbox/content-height-with-scrollbars.html: * css3/flexbox/cross-axis-scrollbar-expected.html: * css3/flexbox/cross-axis-scrollbar.html: * css3/flexbox/css-properties-expected.txt: * css3/flexbox/css-properties.html: * css3/flexbox/csswg/flex-margin-no-collapse.html: * css3/flexbox/definite-cross-sizes-expected.txt: Added. * css3/flexbox/definite-cross-sizes.html: Added. * css3/flexbox/definite-main-size-expected.txt: Added. * css3/flexbox/definite-main-size.html: Added. * css3/flexbox/display-flexbox-set-get-expected.txt: * css3/flexbox/display-flexbox-set-get.html: * css3/flexbox/flex-algorithm-expected.txt: * css3/flexbox/flex-algorithm-min-max-expected.txt: * css3/flexbox/flex-algorithm-min-max.html: * css3/flexbox/flex-algorithm-with-margins-expected.txt: * css3/flexbox/flex-algorithm-with-margins.html: * css3/flexbox/flex-algorithm.html: * css3/flexbox/flex-align-baseline-expected.txt: * css3/flexbox/flex-align-baseline.html: * css3/flexbox/flex-align-column-expected.txt: * css3/flexbox/flex-align-column.html: * css3/flexbox/flex-align-end-expected.txt: * css3/flexbox/flex-align-end.html: * css3/flexbox/flex-align-max-expected.txt: * css3/flexbox/flex-align-max.html: * css3/flexbox/flex-align-percent-height-expected.txt: * css3/flexbox/flex-align-percent-height.html: * css3/flexbox/flex-align-stretch-expected.txt: * css3/flexbox/flex-align-stretch.html: * css3/flexbox/flex-align-vertical-writing-mode.html: * css3/flexbox/flex-align.html: * css3/flexbox/flex-column-relayout-assert-expected.txt: Added. * css3/flexbox/flex-column-relayout-assert.html: Added. * css3/flexbox/flex-factor-less-than-one-expected.txt: Added. * css3/flexbox/flex-factor-less-than-one.html: Added. * css3/flexbox/flex-flow-2-expected.txt: * css3/flexbox/flex-flow-2.html: * css3/flexbox/flex-flow-auto-margins-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space-assert-expected.txt: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-assert.html: Added. * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: * css3/flexbox/flex-flow-auto-margins-no-available-space.html: * css3/flexbox/flex-flow-auto-margins.html: * css3/flexbox/flex-flow-border-expected.txt: * css3/flexbox/flex-flow-border.html: * css3/flexbox/flex-flow-expected.txt: * css3/flexbox/flex-flow-initial-expected.txt: * css3/flexbox/flex-flow-initial.html: * css3/flexbox/flex-flow-margins-auto-size-expected.txt: * css3/flexbox/flex-flow-margins-auto-size.html: * css3/flexbox/flex-flow-margins-expected.txt: * css3/flexbox/flex-flow-margins.html: * css3/flexbox/flex-flow-orientations-expected.txt: * css3/flexbox/flex-flow-orientations.html: * css3/flexbox/flex-flow-overflow-expected.txt: * css3/flexbox/flex-flow-overflow.html: * css3/flexbox/flex-flow-padding-expected.txt: * css3/flexbox/flex-flow-padding.html: * css3/flexbox/flex-flow.html: * css3/flexbox/flex-item-child-overflow-expected.txt: * css3/flexbox/flex-item-child-overflow.html: * css3/flexbox/flex-item-contains-strict-expected.txt: Added. * css3/flexbox/flex-item-contains-strict.html: Added. * css3/flexbox/flex-item-firstLine-valid-expected.txt: * css3/flexbox/flex-item-firstLine-valid.html: * css3/flexbox/flex-justify-content-expected.txt: * css3/flexbox/flex-justify-content.html: * css3/flexbox/flex-longhand-parsing-expected.txt: * css3/flexbox/flex-longhand-parsing.html: * css3/flexbox/flex-no-flex-expected.txt: * css3/flexbox/flex-no-flex.html: * css3/flexbox/flex-one-sets-flex-basis-to-zero-px-expected.txt: Added. * css3/flexbox/flex-one-sets-flex-basis-to-zero-px.html: Added. * css3/flexbox/flex-order-expected.html: Added. * css3/flexbox/flex-order-expected.png: Removed. * css3/flexbox/flex-order-expected.txt: Removed. * css3/flexbox/flex-order.html: * css3/flexbox/flex-property-parsing-expected.txt: * css3/flexbox/flex-property-parsing.html: * css3/flexbox/flex-shorthand-flex-basis-middle-expected.txt: Added. * css3/flexbox/flex-shorthand-flex-basis-middle.html: Added. * css3/flexbox/flexbox-baseline.html: * css3/flexbox/flexbox-height-with-overflow-auto-expected.txt: Added. * css3/flexbox/flexbox-height-with-overflow-auto.html: Added. * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-container-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: * css3/flexbox/flexbox-ignore-firstLetter.html: * css3/flexbox/flexbox-ignore-firstLine-expected.txt: * css3/flexbox/flexbox-ignore-firstLine.html: * css3/flexbox/flexbox-lines-must-be-stretched-by-default-expected.txt: * css3/flexbox/flexbox-lines-must-be-stretched-by-default.html: * css3/flexbox/flexbox-overflow-auto-expected.html: * css3/flexbox/flexbox-overflow-auto.html: * css3/flexbox/flexbox-with-multi-column-property-expected.html: Added. * css3/flexbox/flexbox-with-multi-column-property.html: Added. * css3/flexbox/flexbox-wordwrap-expected.txt: Added. * css3/flexbox/flexbox-wordwrap.html: Added. * css3/flexbox/flexitem-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing-expected.txt: * css3/flexbox/flexitem-no-margin-collapsing.html: * css3/flexbox/flexitem-percent-height-change-expected.txt: * css3/flexbox/flexitem-percent-height-change.html: * css3/flexbox/flexitem-stretch-image-expected.txt: * css3/flexbox/flexitem-stretch-image.html: * css3/flexbox/flexitem-stretch-range.html: * css3/flexbox/flexitem.html: * css3/flexbox/floated-flexbox-expected.txt: * css3/flexbox/floated-flexbox.html: * css3/flexbox/floated-flexitem.html: * css3/flexbox/inline-flex-crash.html: * css3/flexbox/inline-flex-crash2.html: * css3/flexbox/inline-flex-expected.txt: * css3/flexbox/inline-flex.html: * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt: * css3/flexbox/inline-flexbox-ignore-firstLine.html: * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation-expected.txt: Added. * css3/flexbox/inline-flexbox-wrap-vertically-width-calculation.html: Added. * css3/flexbox/insert-text-crash.html: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt: * css3/flexbox/intrinsic-min-width-applies-with-fixed-width.html: * css3/flexbox/intrinsic-width-orthogonal-writing-mode-expected.txt: Added. * css3/flexbox/intrinsic-width-orthogonal-writing-mode.html: Added. * css3/flexbox/large-flex-shrink-assert-expected.txt: Added. * css3/flexbox/large-flex-shrink-assert.html: Added. * css3/flexbox/line-wrapping.html: * css3/flexbox/mainAxisExtent-crash-expected.txt: Added. * css3/flexbox/mainAxisExtent-crash.html: Added. * css3/flexbox/max-width-violation-expected.txt: Added. * css3/flexbox/max-width-violation.html: Added. * css3/flexbox/min-size-auto-expected.txt: * css3/flexbox/min-size-auto.html: * css3/flexbox/minimum-size-image-expected.txt: Added. * css3/flexbox/minimum-size-image.html: Added. * css3/flexbox/multiline-align-content-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column-expected.txt: * css3/flexbox/multiline-align-content-horizontal-column.html: * css3/flexbox/multiline-align-content.html: * css3/flexbox/multiline-align-self-expected.txt: * css3/flexbox/multiline-align-self.html: * css3/flexbox/multiline-column-auto-expected.txt: * css3/flexbox/multiline-column-auto.html: * css3/flexbox/multiline-column-overflow-expected.html: Added. * css3/flexbox/multiline-column-overflow.html: Added. * css3/flexbox/multiline-expected.txt: * css3/flexbox/multiline-justify-content-expected.txt: * css3/flexbox/multiline-justify-content.html: * css3/flexbox/multiline-min-max-expected.txt: Added. * css3/flexbox/multiline-min-max.html: Added. * css3/flexbox/multiline-min-preferred-width-expected.txt: * css3/flexbox/multiline-min-preferred-width.html: * css3/flexbox/multiline-reverse-wrap-baseline.html: * css3/flexbox/multiline-reverse-wrap-overflow-expected.txt: * css3/flexbox/multiline-reverse-wrap-overflow.html: * css3/flexbox/multiline-shrink-to-fit-expected.html: * css3/flexbox/multiline-shrink-to-fit.html: * css3/flexbox/multiline.html: * css3/flexbox/negative-flex-rounding-assert.html: * css3/flexbox/negative-margins-assert.html: * css3/flexbox/negative-overflow-expected.txt: * css3/flexbox/negative-overflow.html: * css3/flexbox/nested-flexbox-min-size-auto-expected.txt: Added. * css3/flexbox/nested-flexbox-min-size-auto.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout-expected.html: Added. * css3/flexbox/nested-orthogonal-flexbox-relayout.html: Added. * css3/flexbox/nested-stretch-expected.txt: * css3/flexbox/nested-stretch.html: * css3/flexbox/order-painting.html: * css3/flexbox/orthogonal-flex-directions-expected.txt: * css3/flexbox/orthogonal-flex-directions.html: * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing-expected.txt: Added. * css3/flexbox/orthogonal-writing-modes-and-intrinsic-sizing.html: Added. * css3/flexbox/overflow-and-padding-expected.txt: Added. * css3/flexbox/overflow-and-padding.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-abspos.html: Added. * css3/flexbox/overflow-auto-dynamic-changes-expected.html: Added. * css3/flexbox/overflow-auto-dynamic-changes.html: Added. * css3/flexbox/overflow-auto-resizes-correctly-expected.txt: Added. * css3/flexbox/overflow-auto-resizes-correctly.html: Added. * css3/flexbox/overflow-keep-scrollpos-expected.txt: * css3/flexbox/overflow-keep-scrollpos.html: * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item-expected.txt: Added. * css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html: Added. * css3/flexbox/percent-margins-expected.txt: * css3/flexbox/percent-margins.html: * css3/flexbox/percentage-height-in-abspos-expected.html: Added. * css3/flexbox/percentage-height-in-abspos.html: Added. * css3/flexbox/percentage-height-replaced-element-expected.txt: Added. * css3/flexbox/percentage-height-replaced-element.html: Added. * css3/flexbox/percentage-heights-expected.txt: * css3/flexbox/percentage-heights.html: * css3/flexbox/percentage-max-width-cross-axis-expected.txt: Added. * css3/flexbox/percentage-max-width-cross-axis.html: Added. * css3/flexbox/percentage-sizes-expected.txt: * css3/flexbox/percentage-sizes-quirks-expected.txt: * css3/flexbox/percentage-sizes-quirks.html: * css3/flexbox/percentage-sizes.html: * css3/flexbox/percentage-width-in-abspos-expected.html: Added. * css3/flexbox/percentage-width-in-abspos.html: Added. * css3/flexbox/perpendicular-writing-modes-inside-flex-item-expected.txt: * css3/flexbox/perpendicular-writing-modes-inside-flex-item.html: * css3/flexbox/position-absolute-child-expected.txt: * css3/flexbox/position-absolute-child.html: * css3/flexbox/position-absolute-children-expected.txt: * css3/flexbox/position-absolute-children.html: * css3/flexbox/preferred-widths-expected.txt: * css3/flexbox/preferred-widths-orthogonal.html: * css3/flexbox/preferred-widths.html: * css3/flexbox/relayout-align-items-expected.txt: * css3/flexbox/relayout-align-items.html: * css3/flexbox/relayout-image-load-expected.txt: * css3/flexbox/relayout-image-load.html: * css3/flexbox/relpos-with-percentage-top-expected.txt: Added. * css3/flexbox/relpos-with-percentage-top.html: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash-expected.txt: Added. * css3/flexbox/relpos-with-scrollable-with-abspos-crash.html: Added. * css3/flexbox/resize-min-content-flexbox-expected.txt: Added. * css3/flexbox/resize-min-content-flexbox.html: Added. * css3/flexbox/resources/box-orient-button.js: Added. (setFlexDirection): (gebi): (test): * css3/flexbox/scrollbars-auto-expected.html: Added. * css3/flexbox/scrollbars-auto.html: Added. * css3/flexbox/scrollbars-expected.html: Added. * css3/flexbox/scrollbars.html: Added. * css3/flexbox/shrinking-column-flexbox-expected.txt: Added. * css3/flexbox/shrinking-column-flexbox.html: Added. * css3/flexbox/stretch-after-sibling-size-change-expected.txt: * css3/flexbox/stretch-after-sibling-size-change.html: * css3/flexbox/stretch-input-in-column-expected.html: * css3/flexbox/stretch-simplified-layout-expected.txt: * css3/flexbox/stretch-simplified-layout.html: * css3/flexbox/stretch-table-child-expected.txt: Added. * css3/flexbox/stretch-table-child.html: Added. * css3/flexbox/stretched-child-shrink-on-relayout-expected.txt: Added. * css3/flexbox/stretched-child-shrink-on-relayout.html: Added. * css3/flexbox/stretching-orthogonal-flows-expected.html: Added. * css3/flexbox/stretching-orthogonal-flows.html: Added. * css3/flexbox/style-change-expected.txt: * css3/flexbox/style-change.html: * css3/flexbox/text-overflow-on-flexbox-expected.html: Added. * css3/flexbox/text-overflow-on-flexbox.html: Added. * css3/flexbox/true-centering-expected.txt: * css3/flexbox/true-centering.html: * css3/flexbox/undefined-min-width-expected.txt: Added. * css3/flexbox/undefined-min-width.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items-expected.html: Added. * css3/flexbox/vertical-align-do-not-effect-flex-items.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored-expected.html: Added. * css3/flexbox/vertical-flexbox-percentage-ignored.html: Added. * css3/flexbox/whitespace-in-flexitem-expected.html: Added. * css3/flexbox/whitespace-in-flexitem.html: Added. * css3/flexbox/width-change-and-relayout-children-expected.txt: * css3/flexbox/width-change-and-relayout-children.html: * css3/flexbox/wrapping-column-dynamic-changes-expected.txt: Added. * css3/flexbox/wrapping-column-dynamic-changes.html: Added. * css3/flexbox/writing-modes-expected.txt: * css3/flexbox/writing-modes.html: * css3/flexbox/z-index.html: * resources/check-layout-th.js: Added. (checkSubtreeExpectedValues): (checkAttribute): (assert_tolerance): (checkExpectedValues): (window.checkLayout): Canonical link: https://commits.webkit.org/185959@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-28 16:23:15 +00:00
shouldBeEqualToString('flexitem.style.flex', '0 0 auto');
shouldBeEqualToString('getComputedStyle(flexitem).flex', '0 0 auto');
add css parsing of -webkit-flex https://bugs.webkit.org/show_bug.cgi?id=82927 Reviewed by Ojan Vafai. Source/WebCore: This is the new syntax for CSS3 flexbox: http://dev.w3.org/csswg/css3-flexbox/#flexibility Not hooked up to anything in the render tree yet so the old syntax is still valid. Test: css3/flexbox/flex-property-parsing.html * css/CSSComputedStyleDeclaration.cpp: (WebCore): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFlex): * css/CSSParser.h: (WebCore): * css/CSSProperty.cpp: (WebCore::CSSProperty::isInheritedProperty): * css/CSSPropertyNames.in: * css/CSSStyleApplyProperty.cpp: (ApplyPropertyFlex): (WebCore::ApplyPropertyFlex::applyInheritValue): (WebCore::ApplyPropertyFlex::applyInitialValue): (WebCore::ApplyPropertyFlex::applyValue): (WebCore::ApplyPropertyFlex::createHandler): (WebCore::ApplyPropertyFlex::getFlexValue): (WebCore): (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: * rendering/style/StyleFlexibleBoxData.cpp: (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): (WebCore::StyleFlexibleBoxData::operator==): * rendering/style/StyleFlexibleBoxData.h: (StyleFlexibleBoxData): LayoutTests: * css3/flexbox/flex-property-parsing-expected.txt: Added. * css3/flexbox/flex-property-parsing.html: Added. * css3/flexbox/script-tests/css-properties.js: * css3/flexbox/script-tests/flex-parsing.js: * css3/flexbox/script-tests/flex-property-parsing.js: Added. * fast/css/getComputedStyle/computed-style-expected.txt: * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: * platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-expected.txt: * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: * platform/qt/svg/css/getComputedStyle-basic-expected.txt: * svg/css/getComputedStyle-basic-expected.txt: Canonical link: https://commits.webkit.org/100326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-03 00:24:28 +00:00
</script>
</body>
</html>