From: macpherson@chromium.org Date: Wed, 22 Feb 2012 00:03:28 +0000 (+0000) Subject: Implement many instances of HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE in CSSStyleApply... X-Git-Tag: 070512121124~12242 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ab356dae08edf9986a425329220275853cc69fe;p=profile%2Fivi%2Fwebkit-efl.git Implement many instances of HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE in CSSStyleApplyProperty. https://bugs.webkit.org/show_bug.cgi?id=79067 Reviewed by Andreas Kling. No new tests / refactoring only. * css/CSSStyleApplyProperty.cpp: (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::collectMatchingRulesForList): * rendering/style/RenderStyle.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108410 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index c3db3e3..a55973e 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,18 @@ +2012-02-21 Luke Macpherson + + Implement many instances of HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE in CSSStyleApplyProperty. + https://bugs.webkit.org/show_bug.cgi?id=79067 + + Reviewed by Andreas Kling. + + No new tests / refactoring only. + + * css/CSSStyleApplyProperty.cpp: + (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): + * css/CSSStyleSelector.cpp: + (WebCore::CSSStyleSelector::collectMatchingRulesForList): + * rendering/style/RenderStyle.h: + 2012-02-21 Jon Lee Bring notifications support to WK1 mac diff --git a/Source/WebCore/css/CSSStyleApplyProperty.cpp b/Source/WebCore/css/CSSStyleApplyProperty.cpp index 842ac47..c5ce91d 100644 --- a/Source/WebCore/css/CSSStyleApplyProperty.cpp +++ b/Source/WebCore/css/CSSStyleApplyProperty.cpp @@ -1750,6 +1750,9 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyWebkitMaskRepeat, ApplyPropertyExpanding::createHandler()); setPropertyHandler(CSSPropertyBackgroundColor, ApplyPropertyColor::createHandler()); + + setPropertyHandler(CSSPropertyBorderCollapse, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyBorderBottomColor, ApplyPropertyColor::createHandler()); setPropertyHandler(CSSPropertyBorderLeftColor, ApplyPropertyColor::createHandler()); setPropertyHandler(CSSPropertyBorderRightColor, ApplyPropertyColor::createHandler()); @@ -1807,6 +1810,9 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyLetterSpacing, ApplyPropertyComputeLength::createHandler()); setPropertyHandler(CSSPropertyWordSpacing, ApplyPropertyComputeLength::createHandler()); + setPropertyHandler(CSSPropertyCaptionSide, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyClear, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyClip, ApplyPropertyClip::createHandler()); setPropertyHandler(CSSPropertyCursor, ApplyPropertyCursor::createHandler()); @@ -1814,6 +1820,8 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyCounterIncrement, ApplyPropertyCounter::createHandler()); setPropertyHandler(CSSPropertyCounterReset, ApplyPropertyCounter::createHandler()); + setPropertyHandler(CSSPropertyEmptyCells, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWebkitFlexOrder, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitFlexPack, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitFlexAlign, ApplyPropertyDefault::createHandler()); @@ -1822,6 +1830,8 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyWebkitFlexWrap, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitFlexFlow, ApplyPropertyExpanding::createHandler()); + setPropertyHandler(CSSPropertyFloat, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyFontSize, ApplyPropertyFontSize::createHandler()); setPropertyHandler(CSSPropertyFontStyle, ApplyPropertyFont::createHandler()); setPropertyHandler(CSSPropertyFontVariant, ApplyPropertyFont::createHandler()); @@ -1890,11 +1900,22 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyPaddingLeft, ApplyPropertyLength<&RenderStyle::paddingLeft, &RenderStyle::setPaddingLeft, &RenderStyle::initialPadding>::createHandler()); setPropertyHandler(CSSPropertyPadding, ApplyPropertyExpanding::createHandler()); - setPropertyHandler(CSSPropertyResize, ApplyPropertyResize::createHandler()); + setPropertyHandler(CSSPropertyPageBreakAfter, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyPageBreakBefore, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyPageBreakInside, ApplyPropertyDefault::createHandler()); - setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::createHandler()); + setPropertyHandler(CSSPropertyPosition, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyResize, ApplyPropertyResize::createHandler()); setPropertyHandler(CSSPropertySize, ApplyPropertyPageSize::createHandler()); + setPropertyHandler(CSSPropertyTableLayout, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyTextTransform, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyUnicodeBidi, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyVerticalAlign, ApplyPropertyVerticalAlign::createHandler()); + setPropertyHandler(CSSPropertyVisibility, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWhiteSpace, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWordBreak, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWordWrap, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitPerspectiveOriginX, ApplyPropertyLength<&RenderStyle::perspectiveOriginX, &RenderStyle::setPerspectiveOriginX, &RenderStyle::initialPerspectiveOriginX>::createHandler()); setPropertyHandler(CSSPropertyWebkitPerspectiveOriginY, ApplyPropertyLength<&RenderStyle::perspectiveOriginY, &RenderStyle::setPerspectiveOriginY, &RenderStyle::initialPerspectiveOriginY>::createHandler()); @@ -1933,9 +1954,13 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyWebkitHyphenateLimitBefore, ApplyPropertyNumber::createHandler()); setPropertyHandler(CSSPropertyWebkitHyphenateLimitLines, ApplyPropertyNumber::createHandler()); + setPropertyHandler(CSSPropertyWebkitLineAlign, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWebkitLineBreak, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitLineGrid, ApplyPropertyString::createHandler()); setPropertyHandler(CSSPropertyWebkitLineSnap, ApplyPropertyDefault::createHandler()); - setPropertyHandler(CSSPropertyWebkitLineAlign, ApplyPropertyDefault::createHandler()); + + setPropertyHandler(CSSPropertyWebkitMatchNearestMailBlockquoteColor, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyWebkitNbspMode, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitTextCombine, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitTextEmphasisPosition, ApplyPropertyDefault::createHandler()); @@ -1947,6 +1972,9 @@ CSSStyleApplyProperty::CSSStyleApplyProperty() setPropertyHandler(CSSPropertyWebkitWrapThrough, ApplyPropertyDefault::createHandler()); setPropertyHandler(CSSPropertyWebkitWrap, ApplyPropertyExpanding::createHandler()); + setPropertyHandler(CSSPropertyWidows, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyOrphans, ApplyPropertyDefault::createHandler()); + setPropertyHandler(CSSPropertyZIndex, ApplyPropertyAuto::createHandler()); setPropertyHandler(CSSPropertyZoom, ApplyPropertyZoom::createHandler()); } diff --git a/Source/WebCore/css/CSSStyleSelector.cpp b/Source/WebCore/css/CSSStyleSelector.cpp index 4fe028e..464d603 100644 --- a/Source/WebCore/css/CSSStyleSelector.cpp +++ b/Source/WebCore/css/CSSStyleSelector.cpp @@ -2987,72 +2987,6 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value) // RenderStyle values. Shorthands (e.g. border, background) occur in this list as well and // are only hit when mapping "inherit" or "initial" into front-end values. switch (property) { -// ident only properties - case CSSPropertyBorderCollapse: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(borderCollapse, BorderCollapse) - return; - case CSSPropertyCaptionSide: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(captionSide, CaptionSide) - return; - case CSSPropertyClear: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(clear, Clear) - return; - case CSSPropertyEmptyCells: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(emptyCells, EmptyCells) - return; - case CSSPropertyFloat: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(floating, Floating) - return; - case CSSPropertyPageBreakBefore: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(pageBreakBefore, PageBreakBefore, PageBreak) - return; - case CSSPropertyPageBreakAfter: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(pageBreakAfter, PageBreakAfter, PageBreak) - return; - case CSSPropertyPageBreakInside: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(pageBreakInside, PageBreakInside, PageBreak) - return; - case CSSPropertyPosition: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(position, Position) - return; - case CSSPropertyTableLayout: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(tableLayout, TableLayout) - return; - case CSSPropertyUnicodeBidi: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(unicodeBidi, UnicodeBidi) - return; - case CSSPropertyTextTransform: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(textTransform, TextTransform) - return; - case CSSPropertyVisibility: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(visibility, Visibility) - return; - case CSSPropertyWhiteSpace: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(whiteSpace, WhiteSpace) - return; -// uri || inherit - case CSSPropertyWordBreak: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(wordBreak, WordBreak) - return; - case CSSPropertyWordWrap: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(wordWrap, WordWrap) - return; - case CSSPropertyWebkitNbspMode: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(nbspMode, NBSPMode) - return; - case CSSPropertyWebkitLineBreak: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(khtmlLineBreak, KHTMLLineBreak) - return; - case CSSPropertyWebkitMatchNearestMailBlockquoteColor: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(matchNearestMailBlockquoteColor, MatchNearestMailBlockquoteColor) - return; - case CSSPropertyWidows: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(widows, Widows) - return; - case CSSPropertyOrphans: - HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(orphans, Orphans) - return; - // lists case CSSPropertyContent: // list of string, uri, counter, attr, i @@ -3934,150 +3868,115 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value) #endif // These properties are implemented in the CSSStyleApplyProperty lookup table. - case CSSPropertyColor: - case CSSPropertyDirection: - case CSSPropertyDisplay: case CSSPropertyBackgroundAttachment: case CSSPropertyBackgroundClip: - case CSSPropertyWebkitBackgroundClip: - case CSSPropertyWebkitBackgroundComposite: - case CSSPropertyBackgroundOrigin: - case CSSPropertyWebkitBackgroundOrigin: + case CSSPropertyBackgroundColor: case CSSPropertyBackgroundImage: - case CSSPropertyWebkitAspectRatio: + case CSSPropertyBackgroundOrigin: + case CSSPropertyBackgroundPosition: + case CSSPropertyBackgroundPositionX: + case CSSPropertyBackgroundPositionY: + case CSSPropertyBackgroundRepeat: + case CSSPropertyBackgroundRepeatX: + case CSSPropertyBackgroundRepeatY: case CSSPropertyBackgroundSize: - case CSSPropertyWebkitBackgroundSize: - case CSSPropertyWebkitMaskAttachment: - case CSSPropertyWebkitMaskClip: - case CSSPropertyWebkitMaskComposite: - case CSSPropertyWebkitMaskOrigin: - case CSSPropertyWebkitMaskImage: - case CSSPropertyWebkitMaskSize: - case CSSPropertyBackgroundColor: + case CSSPropertyBorder: + case CSSPropertyBorderBottom: case CSSPropertyBorderBottomColor: - case CSSPropertyBorderLeftColor: - case CSSPropertyBorderRightColor: - case CSSPropertyBorderTopColor: - case CSSPropertyBorderTopStyle: - case CSSPropertyBorderRightStyle: + case CSSPropertyBorderBottomLeftRadius: + case CSSPropertyBorderBottomRightRadius: case CSSPropertyBorderBottomStyle: - case CSSPropertyBorderLeftStyle: - case CSSPropertyBorderTopWidth: - case CSSPropertyBorderRightWidth: case CSSPropertyBorderBottomWidth: - case CSSPropertyBorderLeftWidth: - case CSSPropertyBorder: - case CSSPropertyBorderStyle: - case CSSPropertyBorderWidth: + case CSSPropertyBorderCollapse: case CSSPropertyBorderColor: case CSSPropertyBorderImage: - case CSSPropertyWebkitBorderImage: - case CSSPropertyWebkitMaskBoxImage: case CSSPropertyBorderImageOutset: - case CSSPropertyWebkitMaskBoxImageOutset: case CSSPropertyBorderImageRepeat: - case CSSPropertyWebkitMaskBoxImageRepeat: case CSSPropertyBorderImageSlice: - case CSSPropertyWebkitMaskBoxImageSlice: - case CSSPropertyBorderImageWidth: - case CSSPropertyWebkitMaskBoxImageWidth: case CSSPropertyBorderImageSource: - case CSSPropertyWebkitMaskBoxImageSource: - case CSSPropertyBorderTop: - case CSSPropertyBorderRight: - case CSSPropertyBorderBottom: + case CSSPropertyBorderImageWidth: case CSSPropertyBorderLeft: + case CSSPropertyBorderLeftColor: + case CSSPropertyBorderLeftStyle: + case CSSPropertyBorderLeftWidth: case CSSPropertyBorderRadius: - case CSSPropertyWebkitBorderRadius: + case CSSPropertyBorderRight: + case CSSPropertyBorderRightColor: + case CSSPropertyBorderRightStyle: + case CSSPropertyBorderRightWidth: + case CSSPropertyBorderSpacing: + case CSSPropertyBorderStyle: + case CSSPropertyBorderTop: + case CSSPropertyBorderTopColor: case CSSPropertyBorderTopLeftRadius: case CSSPropertyBorderTopRightRadius: - case CSSPropertyBorderBottomLeftRadius: - case CSSPropertyBorderBottomRightRadius: - case CSSPropertyBorderSpacing: - case CSSPropertyWebkitBorderHorizontalSpacing: - case CSSPropertyWebkitBorderVerticalSpacing: + case CSSPropertyBorderTopStyle: + case CSSPropertyBorderTopWidth: + case CSSPropertyBorderWidth: + case CSSPropertyBottom: + case CSSPropertyCaptionSide: + case CSSPropertyClear: case CSSPropertyClip: + case CSSPropertyColor: case CSSPropertyCounterIncrement: case CSSPropertyCounterReset: - case CSSPropertyLetterSpacing: - case CSSPropertyWordSpacing: - case CSSPropertyWebkitFlexOrder: - case CSSPropertyWebkitFlexPack: - case CSSPropertyWebkitFlexAlign: - case CSSPropertyWebkitFlexItemAlign: - case CSSPropertyWebkitFlexDirection: - case CSSPropertyWebkitFlexFlow: - case CSSPropertyWebkitFlexWrap: + case CSSPropertyCursor: + case CSSPropertyDirection: + case CSSPropertyDisplay: + case CSSPropertyEmptyCells: + case CSSPropertyFloat: case CSSPropertyFontSize: case CSSPropertyFontStyle: case CSSPropertyFontVariant: - case CSSPropertyTextRendering: - case CSSPropertyWebkitTextOrientation: - case CSSPropertyWebkitFontSmoothing: case CSSPropertyFontWeight: - case CSSPropertyOutline: - case CSSPropertyOutlineStyle: - case CSSPropertyOutlineWidth: - case CSSPropertyOutlineOffset: - case CSSPropertyWebkitColumnRuleWidth: - case CSSPropertyOutlineColor: - case CSSPropertyWebkitColumnRuleColor: - case CSSPropertyWebkitTextEmphasisColor: - case CSSPropertyWebkitTextFillColor: - case CSSPropertyWebkitTextStrokeColor: - case CSSPropertyBackgroundPosition: - case CSSPropertyBackgroundPositionX: - case CSSPropertyBackgroundPositionY: - case CSSPropertyWebkitMaskPosition: - case CSSPropertyWebkitMaskPositionX: - case CSSPropertyWebkitMaskPositionY: - case CSSPropertyBackgroundRepeat: - case CSSPropertyBackgroundRepeatX: - case CSSPropertyBackgroundRepeatY: - case CSSPropertyWebkitMaskRepeat: - case CSSPropertyWebkitMaskRepeatX: - case CSSPropertyWebkitMaskRepeatY: - case CSSPropertyOverflow: - case CSSPropertyOverflowX: - case CSSPropertyOverflowY: - case CSSPropertyMaxWidth: - case CSSPropertyTop: + case CSSPropertyHeight: case CSSPropertyLeft: - case CSSPropertyRight: - case CSSPropertyBottom: - case CSSPropertyWidth: - case CSSPropertyMinWidth: + case CSSPropertyLetterSpacing: case CSSPropertyLineHeight: case CSSPropertyListStyle: case CSSPropertyListStyleImage: case CSSPropertyListStylePosition: case CSSPropertyListStyleType: - case CSSPropertyMarginTop: - case CSSPropertyMarginRight: + case CSSPropertyMargin: case CSSPropertyMarginBottom: case CSSPropertyMarginLeft: - case CSSPropertyMargin: - case CSSPropertyPaddingTop: - case CSSPropertyPaddingRight: + case CSSPropertyMarginRight: + case CSSPropertyMarginTop: + case CSSPropertyMaxHeight: + case CSSPropertyMaxWidth: + case CSSPropertyMinHeight: + case CSSPropertyMinWidth: + case CSSPropertyOrphans: + case CSSPropertyOutline: + case CSSPropertyOutlineColor: + case CSSPropertyOutlineOffset: + case CSSPropertyOutlineStyle: + case CSSPropertyOutlineWidth: + case CSSPropertyOverflow: + case CSSPropertyOverflowX: + case CSSPropertyOverflowY: + case CSSPropertyPadding: case CSSPropertyPaddingBottom: case CSSPropertyPaddingLeft: - case CSSPropertyPadding: + case CSSPropertyPaddingRight: + case CSSPropertyPaddingTop: + case CSSPropertyPageBreakAfter: + case CSSPropertyPageBreakBefore: + case CSSPropertyPageBreakInside: + case CSSPropertyPosition: case CSSPropertyResize: + case CSSPropertyRight: case CSSPropertySize: + case CSSPropertyTableLayout: case CSSPropertyTextAlign: case CSSPropertyTextDecoration: case CSSPropertyTextIndent: - case CSSPropertyMaxHeight: - case CSSPropertyHeight: - case CSSPropertyMinHeight: + case CSSPropertyTextRendering: + case CSSPropertyTextTransform: + case CSSPropertyTop: + case CSSPropertyUnicodeBidi: case CSSPropertyVerticalAlign: - case CSSPropertyWebkitTransformOriginX: - case CSSPropertyWebkitTransformOriginY: - case CSSPropertyWebkitTransformOriginZ: - case CSSPropertyWebkitTransformOrigin: - case CSSPropertyWebkitPerspectiveOriginX: - case CSSPropertyWebkitPerspectiveOriginY: - case CSSPropertyWebkitPerspectiveOrigin: + case CSSPropertyVisibility: case CSSPropertyWebkitAnimationDelay: case CSSPropertyWebkitAnimationDirection: case CSSPropertyWebkitAnimationDuration: @@ -4086,18 +3985,32 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value) case CSSPropertyWebkitAnimationName: case CSSPropertyWebkitAnimationPlayState: case CSSPropertyWebkitAnimationTimingFunction: - case CSSPropertyWebkitTransitionDelay: - case CSSPropertyWebkitTransitionDuration: - case CSSPropertyWebkitTransitionProperty: - case CSSPropertyWebkitTransitionTimingFunction: - case CSSPropertyCursor: - case CSSPropertyWebkitColumns: + case CSSPropertyWebkitAspectRatio: + case CSSPropertyWebkitBackgroundClip: + case CSSPropertyWebkitBackgroundComposite: + case CSSPropertyWebkitBackgroundOrigin: + case CSSPropertyWebkitBackgroundSize: + case CSSPropertyWebkitBorderHorizontalSpacing: + case CSSPropertyWebkitBorderImage: + case CSSPropertyWebkitBorderRadius: + case CSSPropertyWebkitBorderVerticalSpacing: case CSSPropertyWebkitColumnCount: case CSSPropertyWebkitColumnGap: + case CSSPropertyWebkitColumnRuleColor: + case CSSPropertyWebkitColumnRuleWidth: + case CSSPropertyWebkitColumns: case CSSPropertyWebkitColumnWidth: - case CSSPropertyWebkitFlowInto: + case CSSPropertyWebkitFlexAlign: + case CSSPropertyWebkitFlexDirection: + case CSSPropertyWebkitFlexFlow: + case CSSPropertyWebkitFlexItemAlign: + case CSSPropertyWebkitFlexOrder: + case CSSPropertyWebkitFlexPack: + case CSSPropertyWebkitFlexWrap: case CSSPropertyWebkitFlowFrom: + case CSSPropertyWebkitFlowInto: case CSSPropertyWebkitFontKerning: + case CSSPropertyWebkitFontSmoothing: case CSSPropertyWebkitFontVariantLigatures: case CSSPropertyWebkitHighlight: case CSSPropertyWebkitHyphenateCharacter: @@ -4105,16 +4018,58 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value) case CSSPropertyWebkitHyphenateLimitBefore: case CSSPropertyWebkitHyphenateLimitLines: case CSSPropertyWebkitLineAlign: + case CSSPropertyWebkitLineBreak: case CSSPropertyWebkitLineGrid: case CSSPropertyWebkitLineSnap: + case CSSPropertyWebkitMaskAttachment: + case CSSPropertyWebkitMaskBoxImage: + case CSSPropertyWebkitMaskBoxImageOutset: + case CSSPropertyWebkitMaskBoxImageRepeat: + case CSSPropertyWebkitMaskBoxImageSlice: + case CSSPropertyWebkitMaskBoxImageSource: + case CSSPropertyWebkitMaskBoxImageWidth: + case CSSPropertyWebkitMaskClip: + case CSSPropertyWebkitMaskComposite: + case CSSPropertyWebkitMaskImage: + case CSSPropertyWebkitMaskOrigin: + case CSSPropertyWebkitMaskPosition: + case CSSPropertyWebkitMaskPositionX: + case CSSPropertyWebkitMaskPositionY: + case CSSPropertyWebkitMaskRepeat: + case CSSPropertyWebkitMaskRepeatX: + case CSSPropertyWebkitMaskRepeatY: + case CSSPropertyWebkitMaskSize: + case CSSPropertyWebkitMatchNearestMailBlockquoteColor: + case CSSPropertyWebkitNbspMode: + case CSSPropertyWebkitPerspectiveOrigin: + case CSSPropertyWebkitPerspectiveOriginX: + case CSSPropertyWebkitPerspectiveOriginY: case CSSPropertyWebkitTextCombine: + case CSSPropertyWebkitTextEmphasisColor: case CSSPropertyWebkitTextEmphasisPosition: case CSSPropertyWebkitTextEmphasisStyle: + case CSSPropertyWebkitTextFillColor: + case CSSPropertyWebkitTextOrientation: + case CSSPropertyWebkitTextStrokeColor: + case CSSPropertyWebkitTransformOrigin: + case CSSPropertyWebkitTransformOriginX: + case CSSPropertyWebkitTransformOriginY: + case CSSPropertyWebkitTransformOriginZ: + case CSSPropertyWebkitTransitionDelay: + case CSSPropertyWebkitTransitionDuration: + case CSSPropertyWebkitTransitionProperty: + case CSSPropertyWebkitTransitionTimingFunction: + case CSSPropertyWebkitWrap: + case CSSPropertyWebkitWrapFlow: case CSSPropertyWebkitWrapMargin: case CSSPropertyWebkitWrapPadding: - case CSSPropertyWebkitWrapFlow: case CSSPropertyWebkitWrapThrough: - case CSSPropertyWebkitWrap: + case CSSPropertyWhiteSpace: + case CSSPropertyWidows: + case CSSPropertyWidth: + case CSSPropertyWordBreak: + case CSSPropertyWordSpacing: + case CSSPropertyWordWrap: case CSSPropertyZIndex: case CSSPropertyZoom: ASSERT_NOT_REACHED(); diff --git a/Source/WebCore/rendering/style/RenderStyle.h b/Source/WebCore/rendering/style/RenderStyle.h index b4976c0..9f24f62 100644 --- a/Source/WebCore/rendering/style/RenderStyle.h +++ b/Source/WebCore/rendering/style/RenderStyle.h @@ -1540,8 +1540,8 @@ public: static Length initialPadding() { return Length(Fixed); } static Length initialTextIndent() { return Length(Fixed); } static EVerticalAlign initialVerticalAlign() { return BASELINE; } - static int initialWidows() { return 2; } - static int initialOrphans() { return 2; } + static short initialWidows() { return 2; } + static short initialOrphans() { return 2; } static Length initialLineHeight() { return Length(-100.0, Percent); } static ETextAlign initialTextAlign() { return TAAUTO; } static ETextDecoration initialTextDecoration() { return TDNONE; }