Title: [208617] trunk/Source/WebCore
- Revision
- 208617
- Author
- hy...@apple.com
- Date
- 2016-11-11 15:18:36 -0800 (Fri, 11 Nov 2016)
Log Message
[CSS Parser] Add support for -webkit-mask-source-type
https://bugs.webkit.org/show_bug.cgi?id=164657
Reviewed by Dean Jackson.
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeWebkitMaskSourceType):
(WebCore::consumeBackgroundComponent):
(WebCore::CSSPropertyParser::parseSingleValue):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208616 => 208617)
--- trunk/Source/WebCore/ChangeLog 2016-11-11 23:08:34 UTC (rev 208616)
+++ trunk/Source/WebCore/ChangeLog 2016-11-11 23:18:36 UTC (rev 208617)
@@ -1,3 +1,15 @@
+2016-11-11 Dave Hyatt <hy...@apple.com>
+
+ [CSS Parser] Add support for -webkit-mask-source-type
+ https://bugs.webkit.org/show_bug.cgi?id=164657
+
+ Reviewed by Dean Jackson.
+
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeWebkitMaskSourceType):
+ (WebCore::consumeBackgroundComponent):
+ (WebCore::CSSPropertyParser::parseSingleValue):
+
2016-11-11 Antti Koivisto <an...@apple.com>
Updating class name doesn't update the slotted content's style
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208616 => 208617)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-11-11 23:08:34 UTC (rev 208616)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-11-11 23:18:36 UTC (rev 208617)
@@ -2617,6 +2617,11 @@
return consumeIdentRange(range, CSSValueClear, CSSValuePlusLighter);
}
+static RefPtr<CSSPrimitiveValue> consumeWebkitMaskSourceType(CSSParserTokenRange& range)
+{
+ return consumeIdent<CSSValueAuto, CSSValueAlpha, CSSValueLuminance>(range);
+}
+
static RefPtr<CSSPrimitiveValue> consumePrefixedBackgroundBox(CSSPropertyID property, CSSParserTokenRange& range, const CSSParserContext& /*context*/)
{
// The values 'border', 'padding' and 'content' are deprecated and do not apply to the version of the property that has the -webkit- prefix removed.
@@ -2692,6 +2697,8 @@
case CSSPropertyBackgroundImage:
case CSSPropertyWebkitMaskImage:
return consumeImageOrNone(range, context);
+ case CSSPropertyWebkitMaskSourceType:
+ return consumeWebkitMaskSourceType(range);
case CSSPropertyBackgroundPositionX:
case CSSPropertyWebkitMaskPositionX:
return consumePositionX(range, context.mode);
@@ -3740,6 +3747,7 @@
case CSSPropertyWebkitMaskPositionX:
case CSSPropertyWebkitMaskPositionY:
case CSSPropertyWebkitMaskSize:
+ case CSSPropertyWebkitMaskSourceType:
return consumeCommaSeparatedBackgroundComponent(property, m_range, m_context);
case CSSPropertyWebkitMaskRepeatX:
case CSSPropertyWebkitMaskRepeatY:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes