Title: [136080] trunk
Revision
136080
Author
[email protected]
Date
2012-11-28 18:03:37 -0800 (Wed, 28 Nov 2012)

Log Message

Remove -webkit-mask-attachment
https://bugs.webkit.org/show_bug.cgi?id=67137

Reviewed by David Hyatt.

Source/WebCore:

Remove CSS property '-webkit-attachment'. The CSS WG agreed that this should not be
part of the CSS Masking specification. WebKit never implemented the behavior of
attached masks either. The property was just exposed in CSSOM.

Test: Added negative tests to fast/masking/parsing-mask.html.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFillProperty):
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/CSSPropertyNames.in:
* css/StyleBuilder.cpp:
(WebCore::StyleBuilder::StyleBuilder):
* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::asText):
* css/StylePropertyShorthand.cpp:
(WebCore::webkitMaskShorthand):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):
* rendering/style/RenderStyle.h:

LayoutTests:

Added negative tests for '-webkit-mask' shorthand property attachment keywords.

* fast/css/getComputedStyle/computed-style-expected.txt:
* fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* fast/css/remove-shorthand.html: Corrected syntax for -webkit-mask test.
* fast/masking/parsing-mask-expected.txt:
* fast/masking/parsing-mask.html: Added negative tests for attachment property keywords.
* svg/css/getComputedStyle-basic-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (136079 => 136080)


--- trunk/LayoutTests/ChangeLog	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/ChangeLog	2012-11-29 02:03:37 UTC (rev 136080)
@@ -1,3 +1,19 @@
+2012-11-23  Dirk Schulze  <[email protected]>
+
+        Remove -webkit-mask-attachment
+        https://bugs.webkit.org/show_bug.cgi?id=67137
+
+        Reviewed by David Hyatt.
+
+        Added negative tests for '-webkit-mask' shorthand property attachment keywords.
+
+        * fast/css/getComputedStyle/computed-style-expected.txt: 
+        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * fast/css/remove-shorthand.html: Corrected syntax for -webkit-mask test.
+        * fast/masking/parsing-mask-expected.txt:
+        * fast/masking/parsing-mask.html: Added negative tests for attachment property keywords.
+        * svg/css/getComputedStyle-basic-expected.txt:
+
 2012-11-28  Kenichi Ishibashi  <[email protected]>
 
         StyleResolver should not set NaN to font size

Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt (136079 => 136080)


--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt	2012-11-29 02:03:37 UTC (rev 136080)
@@ -173,7 +173,6 @@
 -webkit-marquee-increment: 6px;
 -webkit-marquee-repetition: infinite;
 -webkit-marquee-style: scroll;
--webkit-mask-attachment: scroll;
 -webkit-mask-box-image: none;
 -webkit-mask-box-image-outset: 0px;
 -webkit-mask-box-image-repeat: stretch;

Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (136079 => 136080)


--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2012-11-29 02:03:37 UTC (rev 136080)
@@ -172,7 +172,6 @@
 -webkit-marquee-increment: 6px
 -webkit-marquee-repetition: infinite
 -webkit-marquee-style: scroll
--webkit-mask-attachment: scroll
 -webkit-mask-box-image: none
 -webkit-mask-box-image-outset: 0px
 -webkit-mask-box-image-repeat: stretch

Modified: trunk/LayoutTests/fast/css/remove-shorthand.html (136079 => 136080)


--- trunk/LayoutTests/fast/css/remove-shorthand.html	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/fast/css/remove-shorthand.html	2012-11-29 02:03:37 UTC (rev 136080)
@@ -25,7 +25,7 @@
                  border-spacing: 10px 20px; \
                  -webkit-border-radius: 6px 8px; \
                  overflow: scroll; \
-                 -webkit-mask: url(/mask.png) repeat-x scroll center top;");
+                 -webkit-mask: url(/mask.png) repeat-x center top;");
             var allProperties = element.style.cssText.concat(" ").split("; ");
             element.style.removeProperty(shorthand);
             var remainingProperties = element.style.cssText.concat(" ").split("; ");

Modified: trunk/LayoutTests/fast/masking/parsing-mask-expected.txt (136079 => 136080)


--- trunk/LayoutTests/fast/masking/parsing-mask-expected.txt	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/fast/masking/parsing-mask-expected.txt	2012-11-29 02:03:37 UTC (rev 136080)
@@ -73,6 +73,12 @@
 PASS innerStyle("-webkit-mask", "none repeat-x / auto") is null
 PASS innerStyle("-webkit-mask", "none border-box / auto") is null
 PASS innerStyle("-webkit-mask", "none top left / cover 100%") is null
+PASS innerStyle("-webkit-mask", "scroll") is null
+PASS innerStyle("-webkit-mask", "fixed") is null
+PASS innerStyle("-webkit-mask", "local") is null
+PASS innerStyle("-webkit-mask", "space scroll") is null
+PASS innerStyle("-webkit-mask", "none scroll") is null
+PASS innerStyle("-webkit-mask", "none top left / auto repeat-x scroll border-box border-box") is null
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/fast/masking/parsing-mask.html (136079 => 136080)


--- trunk/LayoutTests/fast/masking/parsing-mask.html	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/fast/masking/parsing-mask.html	2012-11-29 02:03:37 UTC (rev 136080)
@@ -130,11 +130,13 @@
 negativeTest("-webkit-mask", "none repeat-x / auto");
 negativeTest("-webkit-mask", "none border-box / auto");
 negativeTest("-webkit-mask", "none top left / cover 100%");
+negativeTest("-webkit-mask", "scroll");
+negativeTest("-webkit-mask", "fixed");
+negativeTest("-webkit-mask", "local");
+negativeTest("-webkit-mask", "space scroll");
+negativeTest("-webkit-mask", "none scroll");
+negativeTest("-webkit-mask", "none top left / auto repeat-x scroll border-box border-box");
 
-// FIXME: Add negative tests for mask-attachment, which should not be supported.
-// https://bugs.webkit.org/show_bug.cgi?id=67137
-
-
 </script>
 <script src=""
 </body>

Modified: trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt (136079 => 136080)


--- trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt	2012-11-29 02:03:37 UTC (rev 136080)
@@ -344,8 +344,6 @@
 rect: style.getPropertyCSSValue(-webkit-marquee-repetition) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-marquee-style) : scroll
 rect: style.getPropertyCSSValue(-webkit-marquee-style) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-mask-attachment) : scroll
-rect: style.getPropertyCSSValue(-webkit-mask-attachment) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-mask-box-image) : none
 rect: style.getPropertyCSSValue(-webkit-mask-box-image) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-mask-box-image-outset) : 0px
@@ -846,8 +844,6 @@
 g: style.getPropertyCSSValue(-webkit-marquee-repetition) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-marquee-style) : scroll
 g: style.getPropertyCSSValue(-webkit-marquee-style) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-mask-attachment) : scroll
-g: style.getPropertyCSSValue(-webkit-mask-attachment) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-mask-box-image) : none
 g: style.getPropertyCSSValue(-webkit-mask-box-image) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-mask-box-image-outset) : 0px

Modified: trunk/Source/WebCore/ChangeLog (136079 => 136080)


--- trunk/Source/WebCore/ChangeLog	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/ChangeLog	2012-11-29 02:03:37 UTC (rev 136080)
@@ -1,3 +1,35 @@
+2012-11-23  Dirk Schulze  <[email protected]>
+
+        Remove -webkit-mask-attachment
+        https://bugs.webkit.org/show_bug.cgi?id=67137
+
+        Reviewed by David Hyatt.
+
+        Remove CSS property '-webkit-attachment'. The CSS WG agreed that this should not be
+        part of the CSS Masking specification. WebKit never implemented the behavior of
+        attached masks either. The property was just exposed in CSSOM.
+
+        Test: Added negative tests to fast/masking/parsing-mask.html.
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore):
+        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::parseValue):
+        (WebCore::CSSParser::parseFillProperty):
+        * css/CSSProperty.cpp:
+        (WebCore::CSSProperty::isInheritedProperty):
+        * css/CSSPropertyNames.in:
+        * css/StyleBuilder.cpp:
+        (WebCore::StyleBuilder::StyleBuilder):
+        * css/StylePropertySet.cpp:
+        (WebCore::StylePropertySet::asText):
+        * css/StylePropertyShorthand.cpp:
+        (WebCore::webkitMaskShorthand):
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::applyProperty):
+        * rendering/style/RenderStyle.h:
+
 2012-11-28  Michael Pruett  <[email protected]>
 
         IndexedDB: Add forward declaration of SecurityOrigin to IDBBackingStore.h

Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -296,7 +296,6 @@
     CSSPropertyWebkitMarqueeIncrement,
     CSSPropertyWebkitMarqueeRepetition,
     CSSPropertyWebkitMarqueeStyle,
-    CSSPropertyWebkitMaskAttachment,
     CSSPropertyWebkitMaskBoxImage,
     CSSPropertyWebkitMaskBoxImageOutset,
     CSSPropertyWebkitMaskBoxImageRepeat,
@@ -1540,9 +1539,8 @@
 
             return list.release();
         }
-        case CSSPropertyBackgroundAttachment:
-        case CSSPropertyWebkitMaskAttachment: {
-            const FillLayer* layers = propertyID == CSSPropertyWebkitMaskAttachment ? style->maskLayers() : style->backgroundLayers();
+        case CSSPropertyBackgroundAttachment: {
+            const FillLayer* layers = style->backgroundLayers();
             if (!layers->next())
                 return cssValuePool().createValue(layers->attachment());
 

Modified: trunk/Source/WebCore/css/CSSParser.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/CSSParser.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/CSSParser.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -1971,7 +1971,6 @@
     case CSSPropertyBackgroundRepeat:
     case CSSPropertyBackgroundRepeatX:
     case CSSPropertyBackgroundRepeatY:
-    case CSSPropertyWebkitMaskAttachment:
     case CSSPropertyWebkitMaskClip:
     case CSSPropertyWebkitMaskComposite:
     case CSSPropertyWebkitMaskImage:
@@ -2623,8 +2622,7 @@
     }
     case CSSPropertyWebkitMask: {
         const CSSPropertyID properties[] = { CSSPropertyWebkitMaskImage, CSSPropertyWebkitMaskRepeat,
-            CSSPropertyWebkitMaskAttachment, CSSPropertyWebkitMaskPosition,
-            CSSPropertyWebkitMaskOrigin, CSSPropertyWebkitMaskClip, CSSPropertyWebkitMaskSize };
+            CSSPropertyWebkitMaskPosition, CSSPropertyWebkitMaskOrigin, CSSPropertyWebkitMaskClip, CSSPropertyWebkitMaskSize };
         return parseFillShorthand(propId, properties, WTF_ARRAY_LENGTH(properties), important);
     }
     case CSSPropertyBorder:
@@ -4091,7 +4089,6 @@
                         m_valueList->next();
                     break;
                 case CSSPropertyBackgroundAttachment:
-                case CSSPropertyWebkitMaskAttachment:
                     if (val->id == CSSValueScroll || val->id == CSSValueFixed || val->id == CSSValueLocal) {
                         currValue = cssValuePool().createIdentifierValue(val->id);
                         m_valueList->next();

Modified: trunk/Source/WebCore/css/CSSProperty.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/CSSProperty.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/CSSProperty.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -596,7 +596,6 @@
     case CSSPropertyWebkitMarqueeSpeed:
     case CSSPropertyWebkitMarqueeStyle:
     case CSSPropertyWebkitMask:
-    case CSSPropertyWebkitMaskAttachment:
     case CSSPropertyWebkitMaskBoxImage:
     case CSSPropertyWebkitMaskBoxImageOutset:
     case CSSPropertyWebkitMaskBoxImageRepeat:

Modified: trunk/Source/WebCore/css/CSSPropertyNames.in (136079 => 136080)


--- trunk/Source/WebCore/css/CSSPropertyNames.in	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/CSSPropertyNames.in	2012-11-29 02:03:37 UTC (rev 136080)
@@ -318,7 +318,6 @@
 -webkit-marquee-speed
 -webkit-marquee-style
 -webkit-mask
--webkit-mask-attachment
 -webkit-mask-box-image
 -webkit-mask-box-image-outset
 -webkit-mask-box-image-repeat

Modified: trunk/Source/WebCore/css/StyleBuilder.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/StyleBuilder.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/StyleBuilder.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -2021,7 +2021,6 @@
     setPropertyHandler(CSSPropertyWebkitMarginTopCollapse, CSSPropertyWebkitMarginBeforeCollapse);
     setPropertyHandler(CSSPropertyWebkitMarqueeDirection, ApplyPropertyDefault<EMarqueeDirection, &RenderStyle::marqueeDirection, EMarqueeDirection, &RenderStyle::setMarqueeDirection, EMarqueeDirection, &RenderStyle::initialMarqueeDirection>::createHandler());
     setPropertyHandler(CSSPropertyWebkitMarqueeStyle, ApplyPropertyDefault<EMarqueeBehavior, &RenderStyle::marqueeBehavior, EMarqueeBehavior, &RenderStyle::setMarqueeBehavior, EMarqueeBehavior, &RenderStyle::initialMarqueeBehavior>::createHandler());
-    setPropertyHandler(CSSPropertyWebkitMaskAttachment, ApplyPropertyFillLayer<EFillAttachment, CSSPropertyWebkitMaskAttachment, MaskFillLayer, &RenderStyle::accessMaskLayers, &RenderStyle::maskLayers, &FillLayer::isAttachmentSet, &FillLayer::attachment, &FillLayer::setAttachment, &FillLayer::clearAttachment, &FillLayer::initialFillAttachment, &CSSToStyleMap::mapFillAttachment>::createHandler());
     setPropertyHandler(CSSPropertyWebkitMaskBoxImage, ApplyPropertyBorderImage<BorderMask, CSSPropertyWebkitMaskBoxImage, &RenderStyle::maskBoxImage, &RenderStyle::setMaskBoxImage>::createHandler());
     setPropertyHandler(CSSPropertyWebkitMaskBoxImageOutset, ApplyPropertyBorderImageModifier<BorderMask, Outset>::createHandler());
     setPropertyHandler(CSSPropertyWebkitMaskBoxImageRepeat, ApplyPropertyBorderImageModifier<BorderMask, Repeat>::createHandler());

Modified: trunk/Source/WebCore/css/StylePropertySet.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/StylePropertySet.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/StylePropertySet.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -862,7 +862,6 @@
         case CSSPropertyWebkitMaskRepeatY:
         case CSSPropertyWebkitMaskImage:
         case CSSPropertyWebkitMaskRepeat:
-        case CSSPropertyWebkitMaskAttachment:
         case CSSPropertyWebkitMaskPosition:
         case CSSPropertyWebkitMaskClip:
         case CSSPropertyWebkitMaskOrigin:

Modified: trunk/Source/WebCore/css/StylePropertyShorthand.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/StylePropertyShorthand.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/StylePropertyShorthand.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -375,7 +375,6 @@
         CSSPropertyWebkitMaskSize,
         CSSPropertyWebkitMaskRepeatX,
         CSSPropertyWebkitMaskRepeatY,
-        CSSPropertyWebkitMaskAttachment,
         CSSPropertyWebkitMaskOrigin,
         CSSPropertyWebkitMaskClip
     };

Modified: trunk/Source/WebCore/css/StyleResolver.cpp (136079 => 136080)


--- trunk/Source/WebCore/css/StyleResolver.cpp	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/css/StyleResolver.cpp	2012-11-29 02:03:37 UTC (rev 136080)
@@ -3776,7 +3776,6 @@
     case CSSPropertyWebkitLineSnap:
     case CSSPropertyWebkitMarqueeDirection:
     case CSSPropertyWebkitMarqueeStyle:
-    case CSSPropertyWebkitMaskAttachment:
     case CSSPropertyWebkitMaskBoxImage:
     case CSSPropertyWebkitMaskBoxImageOutset:
     case CSSPropertyWebkitMaskBoxImageRepeat:

Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (136079 => 136080)


--- trunk/Source/WebCore/rendering/style/RenderStyle.h	2012-11-29 01:46:34 UTC (rev 136079)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h	2012-11-29 02:03:37 UTC (rev 136080)
@@ -654,7 +654,6 @@
     EFillRepeat maskRepeatX() const { return static_cast<EFillRepeat>(rareNonInheritedData->m_mask.repeatX()); }
     EFillRepeat maskRepeatY() const { return static_cast<EFillRepeat>(rareNonInheritedData->m_mask.repeatY()); }
     CompositeOperator maskComposite() const { return static_cast<CompositeOperator>(rareNonInheritedData->m_mask.composite()); }
-    EFillAttachment maskAttachment() const { return static_cast<EFillAttachment>(rareNonInheritedData->m_mask.attachment()); }
     EFillBox maskClip() const { return static_cast<EFillBox>(rareNonInheritedData->m_mask.clip()); }
     EFillBox maskOrigin() const { return static_cast<EFillBox>(rareNonInheritedData->m_mask.origin()); }
     Length maskXPosition() const { return rareNonInheritedData->m_mask.xPosition(); }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to