Changeset 205102 in webkit
- Timestamp:
- Aug 28, 2016 7:45:43 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205101 r205102 1 2016-08-28 Javier Fernandez <jfernandez@igalia.com> 2 3 Should never be reached failure in WebCore::RenderFlexibleBox::alignChildren 4 https://bugs.webkit.org/show_bug.cgi?id=151591 5 <rdar://problem/27711829> 6 7 Reviewed by Darin Adler. 8 9 Test to verify that align-self and align-items CSS properties use the old 10 syntax when the Grid Layout feature is not enabled. 11 12 * css3/flexbox/new-alignment-values-invalid-if-grid-not-enabled-expected.txt: Added. 13 * css3/flexbox/new-alignment-values-invalid-if-grid-not-enabled.html: Added. 14 1 15 2016-08-28 Frederic Wang <fwang@igalia.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r205101 r205102 1 2016-08-28 Javier Fernandez <jfernandez@igalia.com> 2 3 Should never be reached failure in WebCore::RenderFlexibleBox::alignChildren 4 https://bugs.webkit.org/show_bug.cgi?id=151591 5 <rdar://problem/27711829> 6 7 Reviewed by Darin Adler. 8 9 The align-self and align-items CSS properties were originally defined in the 10 Flexbible Box specification. The new CSS Box Alignment specification tries 11 to generalize them so they can be used by other layout models, as it's the 12 case of the GridLayout spec. 13 14 Since we have implemented the Grid Layout spec behind a runtime flag, we should 15 do the same with the new syntax of these properties. 16 17 Test: css3/flexbox/new-alignment-values-invalid-if-grid-not-enabled.html 18 19 * css/CSSParser.cpp: 20 (WebCore::isValidKeywordPropertyAndValue): 21 (WebCore::isKeywordPropertyID): 22 (WebCore::CSSParser::parseValue): 23 * rendering/RenderFlexibleBox.cpp: 24 (WebCore::RenderFlexibleBox::alignChildren): 25 1 26 2016-08-28 Frederic Wang <fwang@igalia.com> 2 27 -
trunk/Source/WebCore/css/parser/CSSParser.cpp
r204852 r205102 818 818 case CSSPropertyColumnFill: 819 819 if (valueID == CSSValueAuto || valueID == CSSValueBalance) 820 return true; 821 break; 822 case CSSPropertyAlignItems: 823 // FIXME: Per CSS alignment, this property should accept the same arguments as 'justify-self' so we should share its parsing code. 824 // FIXME: For now, we will do it behind the GRID_LAYOUT compile flag. 825 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch) 826 return true; 827 break; 828 case CSSPropertyAlignSelf: 829 // FIXME: Per CSS alignment, this property should accept the same arguments as 'justify-self' so we should share its parsing code. 830 // FIXME: For now, we will do it behind the GRID_LAYOUT compile flag. 831 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch) 820 832 return true; 821 833 break; … … 1144 1156 case CSSPropertyFontVariantAlternates: 1145 1157 return true; 1158 case CSSPropertyAlignItems: 1159 case CSSPropertyAlignSelf: 1160 return !RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled(); 1146 1161 default: 1147 1162 return false; … … 2724 2739 break; 2725 2740 case CSSPropertyJustifySelf: 2741 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 2726 2742 return parseItemPositionOverflowPosition(propId, important); 2727 2743 case CSSPropertyJustifyItems: 2744 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 2728 2745 if (parseLegacyPosition(propId, important)) 2729 2746 return true; … … 3144 3161 break; 3145 3162 case CSSPropertyAlignSelf: 3163 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 3146 3164 return parseItemPositionOverflowPosition(propId, important); 3147 3165 3148 3166 case CSSPropertyAlignItems: 3167 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 3149 3168 return parseItemPositionOverflowPosition(propId, important); 3150 3169 case CSSPropertyBorderBottomStyle: -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r201516 r205102 35 35 #include "RenderLayer.h" 36 36 #include "RenderView.h" 37 #include "RuntimeEnabledFeatures.h" 37 38 #include <limits> 38 39 #include <wtf/MathExtras.h> … … 1398 1399 // Defaulting to Stretch for now, as it what most of FlexBox based renders 1399 1400 // expect as default. 1401 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 1402 FALLTHROUGH; 1400 1403 case ItemPositionStretch: { 1401 1404 applyStretchAlignmentToChild(*child, lineCrossAxisExtent); … … 1432 1435 // FIXME: https://webkit.org/b/135460 - The extended grammar is not supported 1433 1436 // yet for FlexibleBox. 1437 ASSERT(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()); 1438 break; 1434 1439 default: 1435 1440 ASSERT_NOT_REACHED();
Note: See TracChangeset
for help on using the changeset viewer.