Title: [208113] trunk/Source/WebCore
- Revision
- 208113
- Author
- [email protected]
- Date
- 2016-10-29 14:18:45 -0700 (Sat, 29 Oct 2016)
Log Message
[CSS Parser] Support -webkit-text value for background-clip and -webkit-background-clip
https://bugs.webkit.org/show_bug.cgi?id=164189
Reviewed by Dean Jackson.
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeBackgroundBox):
(WebCore::consumePrefixedBackgroundBox):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208112 => 208113)
--- trunk/Source/WebCore/ChangeLog 2016-10-29 21:12:52 UTC (rev 208112)
+++ trunk/Source/WebCore/ChangeLog 2016-10-29 21:18:45 UTC (rev 208113)
@@ -1,3 +1,14 @@
+2016-10-29 Dave Hyatt <[email protected]>
+
+ [CSS Parser] Support -webkit-text value for background-clip and -webkit-background-clip
+ https://bugs.webkit.org/show_bug.cgi?id=164189
+
+ Reviewed by Dean Jackson.
+
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeBackgroundBox):
+ (WebCore::consumePrefixedBackgroundBox):
+
2016-10-29 Joseph Pecoraro <[email protected]>
Remove some unnecessary includes
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208112 => 208113)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 21:12:52 UTC (rev 208112)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 21:18:45 UTC (rev 208113)
@@ -2535,7 +2535,7 @@
static RefPtr<CSSPrimitiveValue> consumeBackgroundBox(CSSParserTokenRange& range)
{
- return consumeIdent<CSSValueBorderBox, CSSValuePaddingBox, CSSValueContentBox>(range);
+ return consumeIdent<CSSValueBorderBox, CSSValuePaddingBox, CSSValueContentBox, CSSValueWebkitText>(range);
}
static RefPtr<CSSPrimitiveValue> consumeBackgroundComposite(CSSParserTokenRange& range)
@@ -2548,7 +2548,7 @@
// The values 'border', 'padding' and 'content' are deprecated and do not apply to the version of the property that has the -webkit- prefix removed.
if (RefPtr<CSSPrimitiveValue> value = consumeIdentRange(range, CSSValueBorder, CSSValuePaddingBox))
return value;
- if ((property == CSSPropertyWebkitBackgroundClip || property == CSSPropertyWebkitMaskClip) && range.peek().id() == CSSValueText)
+ if (range.peek().id() == CSSValueWebkitText || ((property == CSSPropertyWebkitBackgroundClip || property == CSSPropertyWebkitMaskClip) && range.peek().id() == CSSValueText))
return consumeIdent(range);
return nullptr;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes