Changeset 154742 in webkit
- Timestamp:
- Aug 28, 2013 7:10:47 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r154736 r154742 1 2013-08-28 Andrei Parvu <parvu@adobe.com> 2 3 <https://webkit.org/b/120002> [CSS Masking] Add -webkit-mask-source-type shorthand property 4 5 Added test cases for using the source type with the -webkit-mask shorthand property. 6 7 Reviewed by Dirk Schulze. 8 9 * fast/masking/parsing-mask-expected.txt: 10 * fast/masking/parsing-mask.html: 11 1 12 2013-08-28 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 13 -
trunk/LayoutTests/fast/masking/parsing-mask-expected.txt
r154174 r154742 40 40 PASS innerStyle("-webkit-mask-position", "center left 30px") is "left 30px top 50%" 41 41 PASS innerStyle("-webkit-mask-position", "left 20% top") is "left 20% top 0%" 42 PASS innerStyle("-webkit-mask", "none alpha") is "none alpha" 43 PASS innerStyle("-webkit-mask", "none luminance, none alpha") is "none luminance, none alpha" 44 PASS innerStyle("-webkit-mask", "none auto, none, none luminance") is "none auto, none, none luminance" 42 45 PASS innerStyle("-webkit-mask-source-type", "alpha") is "alpha" 43 46 PASS innerStyle("-webkit-mask-source-type", "luminance") is "luminance" … … 117 120 PASS innerStyle("-webkit-mask", "none top 20px top 30px / auto repeat-x scroll border-box border-box") is null 118 121 PASS innerStyle("-webkit-mask", "none top 20px bottom / auto repeat-x scroll border-box border-box") is null 122 PASS innerStyle("-webkit-mask", "none alpha, none auto alpha") is null 123 PASS innerStyle("-webkit-mask", "none alpha luminance") is null 119 124 PASS innerStyle("-webkit-mask-source-type", "rubbish") is null 120 125 PASS innerStyle("-webkit-mask-source-type", "") is null -
trunk/LayoutTests/fast/masking/parsing-mask.html
r154174 r154742 85 85 86 86 // test mask-source-type 87 testInner("-webkit-mask", "none alpha", "none alpha"); 88 testInner("-webkit-mask", "none luminance, none alpha", "none luminance, none alpha"); 89 testInner("-webkit-mask", "none auto, none, none luminance", "none auto, none, none luminance"); 87 90 testInner("-webkit-mask-source-type", "alpha", "alpha"); 88 91 testInner("-webkit-mask-source-type", "luminance", "luminance"); … … 176 179 negativeTest("-webkit-mask", "none top 20px top 30px / auto repeat-x scroll border-box border-box"); 177 180 negativeTest("-webkit-mask", "none top 20px bottom / auto repeat-x scroll border-box border-box"); 181 negativeTest("-webkit-mask", "none alpha, none auto alpha"); 182 negativeTest("-webkit-mask", "none alpha luminance"); 178 183 negativeTest("-webkit-mask-source-type", "rubbish"); 179 184 negativeTest("-webkit-mask-source-type", ""); -
trunk/Source/WebCore/ChangeLog
r154741 r154742 1 2013-08-28 Andrei Parvu <parvu@adobe.com> 2 3 <https://webkit.org/b/120002> [CSS Masking] Add -webkit-mask-source-type shorthand property 4 5 Added the -webkit-mask-source-type property to the -webkit-mask shorthand property. 6 7 Reviewed by Dirk Schulze. 8 9 Test cases added in LayoutTests/fast/masking/parsing-mask.html 10 11 * css/CSSParser.cpp: Added the CSSPropertyWebkitMaskSourceType property to the array of shorthand properties. 12 (WebCore::CSSParser::parseValue): 13 * css/StylePropertyShorthand.cpp: Added the CSSPropertyWebkitMaskSourceType to the list of shorthands. 14 (WebCore::webkitMaskShorthand): 15 (WebCore::matchingShorthandsForLonghand): 16 1 17 2013-08-28 Zan Dobersek <zdobersek@igalia.com> 2 18 -
trunk/Source/WebCore/css/CSSParser.cpp
r154730 r154742 2851 2851 } 2852 2852 case CSSPropertyWebkitMask: { 2853 const CSSPropertyID properties[] = { CSSPropertyWebkitMaskImage, CSSPropertyWebkitMask Repeat,2853 const CSSPropertyID properties[] = { CSSPropertyWebkitMaskImage, CSSPropertyWebkitMaskSourceType, CSSPropertyWebkitMaskRepeat, 2854 2854 CSSPropertyWebkitMaskPosition, CSSPropertyWebkitMaskOrigin, CSSPropertyWebkitMaskClip, CSSPropertyWebkitMaskSize }; 2855 2855 return parseFillShorthand(propId, properties, WTF_ARRAY_LENGTH(properties), important); -
trunk/Source/WebCore/css/StylePropertyShorthand.cpp
r154338 r154742 432 432 static const CSSPropertyID maskProperties[] = { 433 433 CSSPropertyWebkitMaskImage, 434 CSSPropertyWebkitMaskSourceType, 434 435 CSSPropertyWebkitMaskPositionX, 435 436 CSSPropertyWebkitMaskPositionY, … … 899 900 mask.uncheckedAppend(&webkitMaskShorthand()); 900 901 map.set(CSSPropertyWebkitMaskImage, mask); 902 map.set(CSSPropertyWebkitMaskSourceType, mask); 901 903 map.set(CSSPropertyWebkitMaskSize, mask); 902 904 map.set(CSSPropertyWebkitMaskOrigin, mask);
Note: See TracChangeset
for help on using the changeset viewer.