Changeset 166618 in webkit
- Timestamp:
- Apr 1, 2014 3:13:34 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r166614 r166618 1 2014-04-01 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Exclusions] Remove exclusions parsing support 4 https://bugs.webkit.org/show_bug.cgi?id=131046 5 6 Reviewed by David Hyatt. 7 8 * fast/exclusions/css-exclusions-disabled-expected.txt: Removed. 9 * fast/exclusions/css-exclusions-disabled.html: Removed. 10 * fast/exclusions/css-exclusions-enabled-expected.txt: Removed. 11 * fast/exclusions/css-exclusions-enabled.html: Removed. 12 * fast/exclusions/parsing/parsing-wrap-flow-expected.txt: Removed. 13 * fast/exclusions/parsing/parsing-wrap-flow.html: Removed. 14 * fast/exclusions/parsing/parsing-wrap-through-expected.txt: Removed. 15 * fast/exclusions/parsing/parsing-wrap-through.html: Removed. 16 * fast/exclusions/parsing/script-tests/parsing-test-utils.js: Removed. 17 * fast/exclusions/parsing/script-tests/parsing-wrap-flow.js: Removed. 18 * fast/exclusions/parsing/script-tests/parsing-wrap-through.js: Removed. 19 * platform/win/TestExpectations: 20 * platform/wincairo/TestExpectations: 21 1 22 2014-04-01 Manuel Rego Casasnovas <rego@igalia.com> 2 23 -
trunk/LayoutTests/platform/win/TestExpectations
r166301 r166618 1409 1409 # JSC does not support setIsolatedWorldSecurityOrigin 1410 1410 webkit.org/b/61540 http/tests/security/isolatedWorld/cross-origin-xhr.html [ Failure ] 1411 1412 # CSS Exclusions support not yet enabled.1413 webkit.org/b/57311 fast/exclusions1414 1411 1415 1412 webkit.org/b/62595 fast/workers/worker-crash-with-invalid-location.html [ Failure ] -
trunk/LayoutTests/platform/wincairo/TestExpectations
r165676 r166618 1982 1982 fast/regions 1983 1983 1984 # CSS Exclusions support not yet enabled. http://webkit.org/b/573111985 fast/exclusions1986 csswg/submitted/shapes1987 1988 1984 # Causes a SyntaxError (http://webkit.org/b/62595). 1989 1985 fast/workers/worker-crash-with-invalid-location.html -
trunk/Source/WebCore/ChangeLog
r166616 r166618 1 2014-04-01 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Exclusions] Remove exclusions parsing support 4 https://bugs.webkit.org/show_bug.cgi?id=131046 5 6 Reviewed by David Hyatt. 7 8 CSS Exclusions specification [1] needs some evolution before the actual implementation happens. 9 We have only the parsing code in WebKit for -webkit-wrap-flow and -webkit-wrap-through. 10 This patch removes the code from the trunk for now, it doesn't make sense to keep it around. 11 12 [1] http://www.w3.org/TR/css3-exclusions/ 13 14 Removed existing parsing tests. 15 16 * css/CSSComputedStyleDeclaration.cpp: 17 (WebCore::ComputedStyleExtractor::propertyValue): 18 * css/CSSParser.cpp: 19 (WebCore::isValidKeywordPropertyAndValue): 20 (WebCore::isKeywordPropertyID): 21 (WebCore::CSSParser::parseValue): 22 * css/CSSPrimitiveValueMappings.h: 23 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Deleted. 24 (WebCore::CSSPrimitiveValue::operator WrapFlow): Deleted. 25 (WebCore::CSSPrimitiveValue::operator WrapThrough): Deleted. 26 * css/CSSPropertyNames.in: 27 * css/CSSValueKeywords.in: 28 * css/DeprecatedStyleBuilder.cpp: 29 (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): 30 * css/StyleResolver.cpp: 31 (WebCore::StyleResolver::applyProperty): 32 * rendering/style/RenderStyle.cpp: 33 (WebCore::RenderStyle::changeRequiresLayout): 34 * rendering/style/RenderStyle.h: 35 * rendering/style/RenderStyleConstants.h: 36 * rendering/style/StyleRareNonInheritedData.cpp: 37 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 38 (WebCore::StyleRareNonInheritedData::operator==): 39 * rendering/style/StyleRareNonInheritedData.h: 40 1 41 2014-04-01 Timothy Hatcher <timothy@apple.com> 2 42 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r166486 r166618 385 385 CSSPropertyWebkitRegionBreakInside, 386 386 CSSPropertyWebkitRegionFragment, 387 #endif388 #if ENABLE(CSS_EXCLUSIONS)389 CSSPropertyWebkitWrapFlow,390 CSSPropertyWebkitWrapThrough,391 387 #endif 392 388 #if ENABLE(CSS_SHAPES) … … 2807 2803 return cssValuePool().createValue(style->regionFragment()); 2808 2804 #endif 2809 #if ENABLE(CSS_EXCLUSIONS)2810 case CSSPropertyWebkitWrapFlow:2811 return cssValuePool().createValue(style->wrapFlow());2812 case CSSPropertyWebkitWrapThrough:2813 return cssValuePool().createValue(style->wrapThrough());2814 #endif2815 2805 #if ENABLE(CSS_SHAPES) 2816 2806 case CSSPropertyWebkitShapeMargin: -
trunk/Source/WebCore/css/CSSParser.cpp
r166486 r166618 1018 1018 return true; 1019 1019 break; 1020 #if ENABLE(CSS_EXCLUSIONS)1021 case CSSPropertyWebkitWrapFlow:1022 if (!RuntimeEnabledFeatures::sharedFeatures().cssExclusionsEnabled())1023 return false;1024 if (valueID == CSSValueAuto || valueID == CSSValueBoth || valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueMaximum || valueID == CSSValueClear)1025 return true;1026 break;1027 case CSSPropertyWebkitWrapThrough:1028 if (!RuntimeEnabledFeatures::sharedFeatures().cssExclusionsEnabled())1029 return false;1030 if (valueID == CSSValueWrap || valueID == CSSValueNone)1031 return true;1032 break;1033 #endif1034 1020 case CSSPropertyWebkitWritingMode: 1035 1021 if (valueID >= CSSValueHorizontalTb && valueID <= CSSValueHorizontalBt) … … 1164 1150 case CSSPropertyWebkitUserModify: 1165 1151 case CSSPropertyWebkitUserSelect: 1166 #if ENABLE(CSS_EXCLUSIONS)1167 case CSSPropertyWebkitWrapFlow:1168 case CSSPropertyWebkitWrapThrough:1169 #endif1170 1152 case CSSPropertyWebkitWritingMode: 1171 1153 case CSSPropertyWhiteSpace: … … 3039 3021 case CSSPropertyWebkitUserModify: 3040 3022 case CSSPropertyWebkitUserSelect: 3041 #if ENABLE(CSS_EXCLUSIONS)3042 case CSSPropertyWebkitWrapFlow:3043 case CSSPropertyWebkitWrapThrough:3044 #endif3045 3023 case CSSPropertyWebkitWritingMode: 3046 3024 case CSSPropertyWhiteSpace: -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r165843 r166618 4582 4582 } 4583 4583 4584 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapFlow wrapFlow)4585 : CSSValue(PrimitiveClass)4586 {4587 m_primitiveUnitType = CSS_VALUE_ID;4588 switch (wrapFlow) {4589 case WrapFlowAuto:4590 m_value.valueID = CSSValueAuto;4591 break;4592 case WrapFlowBoth:4593 m_value.valueID = CSSValueBoth;4594 break;4595 case WrapFlowStart:4596 m_value.valueID = CSSValueStart;4597 break;4598 case WrapFlowEnd:4599 m_value.valueID = CSSValueEnd;4600 break;4601 case WrapFlowMaximum:4602 m_value.valueID = CSSValueMaximum;4603 break;4604 case WrapFlowClear:4605 m_value.valueID = CSSValueClear;4606 break;4607 }4608 }4609 4610 template<> inline CSSPrimitiveValue::operator WrapFlow() const4611 {4612 ASSERT(isValueID());4613 4614 switch (m_value.valueID) {4615 case CSSValueAuto:4616 return WrapFlowAuto;4617 case CSSValueBoth:4618 return WrapFlowBoth;4619 case CSSValueStart:4620 return WrapFlowStart;4621 case CSSValueEnd:4622 return WrapFlowEnd;4623 case CSSValueMaximum:4624 return WrapFlowMaximum;4625 case CSSValueClear:4626 return WrapFlowClear;4627 default:4628 break;4629 }4630 4631 ASSERT_NOT_REACHED();4632 return WrapFlowAuto;4633 }4634 4635 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(WrapThrough wrapThrough)4636 : CSSValue(PrimitiveClass)4637 {4638 m_primitiveUnitType = CSS_VALUE_ID;4639 switch (wrapThrough) {4640 case WrapThroughWrap:4641 m_value.valueID = CSSValueWrap;4642 break;4643 case WrapThroughNone:4644 m_value.valueID = CSSValueNone;4645 break;4646 }4647 }4648 4649 template<> inline CSSPrimitiveValue::operator WrapThrough() const4650 {4651 ASSERT(isValueID());4652 4653 switch (m_value.valueID) {4654 case CSSValueWrap:4655 return WrapThroughWrap;4656 case CSSValueNone:4657 return WrapThroughNone;4658 default:4659 break;4660 }4661 4662 ASSERT_NOT_REACHED();4663 return WrapThroughWrap;4664 }4665 4666 4584 #if ENABLE(CSS_GRID_LAYOUT) 4667 4585 template<> inline CSSPrimitiveValue::operator GridAutoFlow() const -
trunk/Source/WebCore/css/CSSPropertyNames.in
r166301 r166618 441 441 -webkit-shape-image-threshold 442 442 #endif 443 #if defined(ENABLE_CSS_EXCLUSIONS) && ENABLE_CSS_EXCLUSIONS444 -webkit-wrap-flow445 -webkit-wrap-through446 #endif447 443 #if defined(ENABLE_CSS_DEVICE_ADAPTATION) && ENABLE_CSS_DEVICE_ADAPTATION 448 444 max-zoom -
trunk/Source/WebCore/css/CSSValueKeywords.in
r165595 r166618 983 983 break 984 984 985 // -webkit-wrap-flow986 // auto987 // both988 // left989 // right990 maximum991 // clear992 993 // -webkit-wrap-through994 985 wrap 995 // none996 986 997 987 // -webkit-line-align -
trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp
r166486 r166618 2610 2610 setPropertyHandler(CSSPropertyWebkitUserSelect, ApplyPropertyDefault<EUserSelect, &RenderStyle::userSelect, EUserSelect, &RenderStyle::setUserSelect, EUserSelect, &RenderStyle::initialUserSelect>::createHandler()); 2611 2611 setPropertyHandler(CSSPropertyWebkitClipPath, ApplyPropertyClipPath<&RenderStyle::clipPath, &RenderStyle::setClipPath, &RenderStyle::initialClipPath>::createHandler()); 2612 2613 #if ENABLE(CSS_EXCLUSIONS)2614 setPropertyHandler(CSSPropertyWebkitWrapFlow, ApplyPropertyDefault<WrapFlow, &RenderStyle::wrapFlow, WrapFlow, &RenderStyle::setWrapFlow, WrapFlow, &RenderStyle::initialWrapFlow>::createHandler());2615 setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault<WrapThrough, &RenderStyle::wrapThrough, WrapThrough, &RenderStyle::setWrapThrough, WrapThrough, &RenderStyle::initialWrapThrough>::createHandler());2616 #endif2617 2612 #if ENABLE(CSS_SHAPES) 2618 2613 setPropertyHandler(CSSPropertyWebkitShapeMargin, ApplyPropertyLength<&RenderStyle::shapeMargin, &RenderStyle::setShapeMargin, &RenderStyle::initialShapeMargin>::createHandler()); -
trunk/Source/WebCore/css/StyleResolver.cpp
r166537 r166618 3003 3003 case CSSPropertyWebkitShapeOutside: 3004 3004 #endif 3005 #if ENABLE(CSS_EXCLUSIONS)3006 case CSSPropertyWebkitWrapFlow:3007 case CSSPropertyWebkitWrapThrough:3008 #endif3009 3005 case CSSPropertyWhiteSpace: 3010 3006 case CSSPropertyWidows: -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r166519 r166618 414 414 415 415 if (rareNonInheritedData->m_regionFragment != other->rareNonInheritedData->m_regionFragment) 416 return true;417 418 if (rareNonInheritedData->m_wrapFlow != other->rareNonInheritedData->m_wrapFlow419 || rareNonInheritedData->m_wrapThrough != other->rareNonInheritedData->m_wrapThrough)420 416 return true; 421 417 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r166589 r166618 1031 1031 LineSnap lineSnap() const { return static_cast<LineSnap>(rareInheritedData->m_lineSnap); } 1032 1032 LineAlign lineAlign() const { return static_cast<LineAlign>(rareInheritedData->m_lineAlign); } 1033 1034 WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedData->m_wrapFlow); }1035 WrapThrough wrapThrough() const { return static_cast<WrapThrough>(rareNonInheritedData->m_wrapThrough); }1036 1033 1037 1034 // Apple-specific property getter methods … … 1548 1545 void setRegionFragment(RegionFragment regionFragment) { SET_VAR(rareNonInheritedData, m_regionFragment, regionFragment); } 1549 1546 1550 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFlow, wrapFlow); }1551 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData, m_wrapThrough, wrapThrough); }1552 1553 1547 // Apple-specific property setters 1554 1548 void setPointerEvents(EPointerEvents p) { inherited_flags._pointerEvents = p; } … … 1914 1908 static RegionFragment initialRegionFragment() { return AutoRegionFragment; } 1915 1909 1916 static WrapFlow initialWrapFlow() { return WrapFlowAuto; }1917 static WrapThrough initialWrapThrough() { return WrapThroughWrap; }1918 1919 1910 // Keep these at the end. 1920 1911 static LineClampValue initialLineClamp() { return LineClampValue(); } -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.h
r165843 r166618 536 536 enum LineAlign { LineAlignNone, LineAlignEdges }; 537 537 538 enum WrapFlow { WrapFlowAuto, WrapFlowBoth, WrapFlowStart, WrapFlowEnd, WrapFlowMaximum, WrapFlowClear };539 540 enum WrapThrough { WrapThroughWrap, WrapThroughNone };541 542 538 enum RubyPosition { RubyPositionBefore, RubyPositionAfter }; 543 539 -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r166489 r166618 85 85 , m_textCombine(RenderStyle::initialTextCombine()) 86 86 , m_textDecorationStyle(RenderStyle::initialTextDecorationStyle()) 87 , m_wrapFlow(RenderStyle::initialWrapFlow())88 , m_wrapThrough(RenderStyle::initialWrapThrough())89 87 , m_runningAcceleratedAnimation(false) 90 88 , m_aspectRatioType(RenderStyle::initialAspectRatioType()) … … 164 162 , m_textCombine(o.m_textCombine) 165 163 , m_textDecorationStyle(o.m_textDecorationStyle) 166 , m_wrapFlow(o.m_wrapFlow)167 , m_wrapThrough(o.m_wrapThrough)168 164 , m_runningAcceleratedAnimation(o.m_runningAcceleratedAnimation) 169 165 , m_aspectRatioType(o.m_aspectRatioType) … … 254 250 && m_textCombine == o.m_textCombine 255 251 && m_textDecorationStyle == o.m_textDecorationStyle 256 && m_wrapFlow == o.m_wrapFlow257 && m_wrapThrough == o.m_wrapThrough258 252 && !m_runningAcceleratedAnimation && !o.m_runningAcceleratedAnimation 259 253 #if ENABLE(CSS_COMPOSITING) -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r166489 r166618 186 186 187 187 unsigned m_textDecorationStyle : 3; // TextDecorationStyle 188 unsigned m_wrapFlow: 3; // WrapFlow189 unsigned m_wrapThrough: 1; // WrapThrough190 188 191 189 unsigned m_runningAcceleratedAnimation : 1; -
trunk/Source/WebInspectorUI/ChangeLog
r166616 r166618 1 2014-04-01 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Exclusions] Remove exclusions parsing support 4 https://bugs.webkit.org/show_bug.cgi?id=131046 5 6 Reviewed by David Hyatt. 7 8 * UserInterface/Models/CSSKeywordCompletions.js: 9 1 10 2014-04-01 Timothy Hatcher <timothy@apple.com> 2 11 -
trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js
r165661 r166618 767 767 "auto", "break" 768 768 ], 769 "-webkit-wrap-flow": [770 "auto", "both", "start", "end", "maximum", "clear"771 ],772 "-webkit-wrap-through": [773 "wrap", "none"774 ],775 769 "-webkit-backface-visibility": [ 776 770 "visible", "hidden" -
trunk/Tools/ChangeLog
r166609 r166618 1 2014-04-01 Zoltan Horvath <zoltan@webkit.org> 2 3 [CSS Exclusions] Remove exclusions parsing support 4 https://bugs.webkit.org/show_bug.cgi?id=131046 5 6 Reviewed by David Hyatt. 7 8 * Scripts/webkitperl/FeatureList.pm: 9 1 10 2014-04-01 Manuel Rego Casasnovas <rego@igalia.com> 2 11 -
trunk/Tools/Scripts/webkitperl/FeatureList.pm
r166535 r166618 57 57 $cssBoxDecorationBreakSupport, 58 58 $cssDeviceAdaptation, 59 $cssExclusionsSupport,60 59 $cssFiltersSupport, 61 60 $cssGridLayoutSupport, … … 184 183 define => "ENABLE_CSS_DEVICE_ADAPTATION", default => isEfl(), value => \$cssDeviceAdaptation }, 185 184 186 { option => "css-exclusions", desc => "Toggle CSS Exclusions support",187 define => "ENABLE_CSS_EXCLUSIONS", default => 1, value => \$cssExclusionsSupport },188 189 185 { option => "css-shapes", desc => "Toggle CSS Shapes support", 190 186 define => "ENABLE_CSS_SHAPES", default => 1, value => \$cssShapesSupport },
Note: See TracChangeset
for help on using the changeset viewer.