Changeset 83926 in webkit


Ignore:
Timestamp:
Apr 14, 2011 6:32:31 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-14 Luke Macpherson <macpherson@chromium.org>

Reviewed by Dimitri Glazkov.

Implement border style css properties in CSSStyleApplyProperty
https://bugs.webkit.org/show_bug.cgi?id=58506

No new functionality added.

  • css/CSSStyleApplyProperty.cpp: (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): Added new property initializers.
  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): Removed old property handlers.
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83922 r83926  
     12011-04-14  Luke Macpherson   <macpherson@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Implement border style css properties in CSSStyleApplyProperty
     6        https://bugs.webkit.org/show_bug.cgi?id=58506
     7
     8        No new functionality added.
     9
     10        * css/CSSStyleApplyProperty.cpp:
     11        (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
     12        Added new property initializers.
     13
     14        * css/CSSStyleSelector.cpp:
     15        (WebCore::CSSStyleSelector::applyProperty):
     16        Removed old property handlers.
     17
    1182011-04-14  Dimitri Glazkov  <dglazkov@chromium.org>
    219
  • trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp

    r83731 r83926  
    364364    setPropertyValue(CSSPropertyBorderRightColor, new ApplyPropertyColorBase(&RenderStyle::borderRightColor, &RenderStyle::color, &RenderStyle::setBorderRightColor));
    365365    setPropertyValue(CSSPropertyBorderTopColor, new ApplyPropertyColorBase(&RenderStyle::borderTopColor, &RenderStyle::color, &RenderStyle::setBorderTopColor));
     366
     367    setPropertyValue(CSSPropertyBorderTopStyle, new ApplyPropertyDefault<EBorderStyle>(&RenderStyle::borderTopStyle, &RenderStyle::setBorderTopStyle, &RenderStyle::initialBorderStyle));
     368    setPropertyValue(CSSPropertyBorderRightStyle, new ApplyPropertyDefault<EBorderStyle>(&RenderStyle::borderRightStyle, &RenderStyle::setBorderRightStyle, &RenderStyle::initialBorderStyle));
     369    setPropertyValue(CSSPropertyBorderBottomStyle, new ApplyPropertyDefault<EBorderStyle>(&RenderStyle::borderBottomStyle, &RenderStyle::setBorderBottomStyle, &RenderStyle::initialBorderStyle));
     370    setPropertyValue(CSSPropertyBorderLeftStyle, new ApplyPropertyDefault<EBorderStyle>(&RenderStyle::borderLeftStyle, &RenderStyle::setBorderLeftStyle, &RenderStyle::initialBorderStyle));
     371
    366372    setPropertyValue(CSSPropertyOutlineColor, new ApplyPropertyColorBase(&RenderStyle::outlineColor, &RenderStyle::color, &RenderStyle::setOutlineColor));
    367373    setPropertyValue(CSSPropertyWebkitColumnRuleColor, new ApplyPropertyColorBase(&RenderStyle::columnRuleColor, &RenderStyle::color, &RenderStyle::setColumnRuleColor));
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r83889 r83926  
    36013601        }
    36023602        return;
    3603     case CSSPropertyBorderTopStyle:
    3604         HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(borderTopStyle, BorderTopStyle, BorderStyle)
    3605         return;
    3606     case CSSPropertyBorderRightStyle:
    3607         HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(borderRightStyle, BorderRightStyle, BorderStyle)
    3608         return;
    3609     case CSSPropertyBorderBottomStyle:
    3610         HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(borderBottomStyle, BorderBottomStyle, BorderStyle)
    3611         return;
    3612     case CSSPropertyBorderLeftStyle:
    3613         HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE_WITH_VALUE(borderLeftStyle, BorderLeftStyle, BorderStyle)
    3614         return;
    36153603    case CSSPropertyOutlineStyle:
    36163604        HANDLE_INHERIT_AND_INITIAL_WITH_VALUE(outlineStyle, OutlineStyle, BorderStyle)
     
    60676055    case CSSPropertyBorderRightColor:
    60686056    case CSSPropertyBorderTopColor:
     6057    case CSSPropertyBorderTopStyle:
     6058    case CSSPropertyBorderRightStyle:
     6059    case CSSPropertyBorderBottomStyle:
     6060    case CSSPropertyBorderLeftStyle:
    60696061    case CSSPropertyOutlineColor:
    60706062    case CSSPropertyWebkitColumnRuleColor:
Note: See TracChangeset for help on using the changeset viewer.