Changeset 95031 in webkit


Ignore:
Timestamp:
Sep 13, 2011 10:31:54 AM (13 years ago)
Author:
rniwa@webkit.org
Message:

[CSS3 Backgrounds and Borders] Add unprefixed border-image shorthand.
https://bugs.webkit.org/show_bug.cgi?id=67970

Reviewed by David Hyatt.

Also update CSSStyleSelector.cpp to support border-image to suppress assertion in
fast/borders/border-image-omit-right-slice.html

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::applyProperty):
(WebCore::CSSStyleSelector::mapNinePieceImage):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95030 r95031  
     12011-09-12  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        [CSS3 Backgrounds and Borders] Add unprefixed border-image shorthand.
     4        https://bugs.webkit.org/show_bug.cgi?id=67970
     5
     6        Reviewed by David Hyatt.
     7
     8        Also update CSSStyleSelector.cpp to support border-image to suppress assertion in
     9        fast/borders/border-image-omit-right-slice.html
     10
     11        * css/CSSStyleSelector.cpp:
     12        (WebCore::CSSStyleSelector::applyProperty):
     13        (WebCore::CSSStyleSelector::mapNinePieceImage):
     14
    1152011-09-13  Xianzhu Wang  <wangxianzhu@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r95023 r95031  
    31623162    case CSSPropertyWebkitMaskBoxImage: {
    31633163        if (isInherit) {
     3164            HANDLE_INHERIT_COND(CSSPropertyBorderImage, borderImage, BorderImage)
    31643165            HANDLE_INHERIT_COND(CSSPropertyWebkitBorderImage, borderImage, BorderImage)
    31653166            HANDLE_INHERIT_COND(CSSPropertyWebkitMaskBoxImage, maskBoxImage, MaskBoxImage)
    31663167            return;
    31673168        } else if (isInitial) {
     3169            HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyBorderImage, BorderImage, NinePieceImage)
    31683170            HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyWebkitBorderImage, BorderImage, NinePieceImage)
    31693171            HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyWebkitMaskBoxImage, MaskBoxImage, NinePieceImage)
     
    31773179        }
    31783180        mapNinePieceImage(property, value, image);
    3179        
    3180         if (id == CSSPropertyWebkitBorderImage)
     3181
     3182        if (id != CSSPropertyWebkitMaskBoxImage)
    31813183            m_style->setBorderImage(image);
    31823184        else
     
    46034605    // Set the image (this kicks off the load).
    46044606    CSSPropertyID imageProperty;
    4605     if (property == CSSPropertyWebkitBorderImage)
     4607    if (property == CSSPropertyWebkitBorderImage || property == CSSPropertyBorderImage)
    46064608        imageProperty = CSSPropertyBorderImageSource;
    46074609    else if (property == CSSPropertyWebkitMaskBoxImage)
Note: See TracChangeset for help on using the changeset viewer.