Title: [209248] trunk/Source/WebCore
- Revision
- 209248
- Author
- [email protected]
- Date
- 2016-12-02 10:51:47 -0800 (Fri, 02 Dec 2016)
Log Message
[CSS Parser] Add support for the SVG 'kerning' property
https://bugs.webkit.org/show_bug.cgi?id=165315
Reviewed by Zalan Bujtas.
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeKerning):
(WebCore::CSSPropertyParser::parseSingleValue):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (209247 => 209248)
--- trunk/Source/WebCore/ChangeLog 2016-12-02 18:40:50 UTC (rev 209247)
+++ trunk/Source/WebCore/ChangeLog 2016-12-02 18:51:47 UTC (rev 209248)
@@ -1,3 +1,14 @@
+2016-12-02 Dave Hyatt <[email protected]>
+
+ [CSS Parser] Add support for the SVG 'kerning' property
+ https://bugs.webkit.org/show_bug.cgi?id=165315
+
+ Reviewed by Zalan Bujtas.
+
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeKerning):
+ (WebCore::CSSPropertyParser::parseSingleValue):
+
2016-12-02 Sam Weinig <[email protected]>
[WebIDL] Remove support for the 'Nondeterministic' extended attribute
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (209247 => 209248)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-12-02 18:40:50 UTC (rev 209247)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-12-02 18:51:47 UTC (rev 209248)
@@ -2036,6 +2036,14 @@
return consumeLengthOrPercent(range, cssParserMode, ValueRangeNonNegative);
}
+static RefPtr<CSSValue> consumeKerning(CSSParserTokenRange& range, CSSParserMode mode)
+{
+ RefPtr<CSSValue> result = consumeIdent<CSSValueAuto, CSSValueNormal>(range);
+ if (result)
+ return result;
+ return consumeLength(range, mode, ValueRangeAll, UnitlessQuirk::Allow);
+}
+
static RefPtr<CSSValue> consumeStrokeDasharray(CSSParserTokenRange& range)
{
CSSValueID id = range.peek().id();
@@ -3864,6 +3872,8 @@
return consumeNumber(m_range, ValueRangeAll);
case CSSPropertyBaselineShift:
return consumeBaselineShift(m_range);
+ case CSSPropertyKerning:
+ return consumeKerning(m_range, m_context.mode);
case CSSPropertyStrokeMiterlimit:
return consumeNumber(m_range, ValueRangeNonNegative);
case CSSPropertyStrokeWidth:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes