Changeset 95031 in webkit
- Timestamp:
- Sep 13, 2011 10:31:54 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95030 r95031 1 2011-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 1 15 2011-09-13 Xianzhu Wang <wangxianzhu@chromium.org> 2 16 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r95023 r95031 3162 3162 case CSSPropertyWebkitMaskBoxImage: { 3163 3163 if (isInherit) { 3164 HANDLE_INHERIT_COND(CSSPropertyBorderImage, borderImage, BorderImage) 3164 3165 HANDLE_INHERIT_COND(CSSPropertyWebkitBorderImage, borderImage, BorderImage) 3165 3166 HANDLE_INHERIT_COND(CSSPropertyWebkitMaskBoxImage, maskBoxImage, MaskBoxImage) 3166 3167 return; 3167 3168 } else if (isInitial) { 3169 HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyBorderImage, BorderImage, NinePieceImage) 3168 3170 HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyWebkitBorderImage, BorderImage, NinePieceImage) 3169 3171 HANDLE_INITIAL_COND_WITH_VALUE(CSSPropertyWebkitMaskBoxImage, MaskBoxImage, NinePieceImage) … … 3177 3179 } 3178 3180 mapNinePieceImage(property, value, image); 3179 3180 if (id == CSSPropertyWebkitBorderImage)3181 3182 if (id != CSSPropertyWebkitMaskBoxImage) 3181 3183 m_style->setBorderImage(image); 3182 3184 else … … 4603 4605 // Set the image (this kicks off the load). 4604 4606 CSSPropertyID imageProperty; 4605 if (property == CSSPropertyWebkitBorderImage )4607 if (property == CSSPropertyWebkitBorderImage || property == CSSPropertyBorderImage) 4606 4608 imageProperty = CSSPropertyBorderImageSource; 4607 4609 else if (property == CSSPropertyWebkitMaskBoxImage)
Note: See TracChangeset
for help on using the changeset viewer.