Title: [208108] trunk/Source/WebCore
- Revision
- 208108
- Author
- [email protected]
- Date
- 2016-10-29 11:37:40 -0700 (Sat, 29 Oct 2016)
Log Message
[CSS Parser] Add support for -webkit-hyphenate-limit-* properties
https://bugs.webkit.org/show_bug.cgi?id=164183
Reviewed by Simon Fraser.
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeHyphenateLimit):
(WebCore::CSSPropertyParser::parseSingleValue):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208107 => 208108)
--- trunk/Source/WebCore/ChangeLog 2016-10-29 17:46:54 UTC (rev 208107)
+++ trunk/Source/WebCore/ChangeLog 2016-10-29 18:37:40 UTC (rev 208108)
@@ -1,5 +1,16 @@
2016-10-29 Dave Hyatt <[email protected]>
+ [CSS Parser] Add support for -webkit-hyphenate-limit-* properties
+ https://bugs.webkit.org/show_bug.cgi?id=164183
+
+ Reviewed by Simon Fraser.
+
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeHyphenateLimit):
+ (WebCore::CSSPropertyParser::parseSingleValue):
+
+2016-10-29 Dave Hyatt <[email protected]>
+
[CSS Parser] Fix transform-origin and perspective-origin to parse as shorthands
https://bugs.webkit.org/show_bug.cgi?id=164178
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208107 => 208108)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 17:46:54 UTC (rev 208107)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2016-10-29 18:37:40 UTC (rev 208108)
@@ -1030,6 +1030,13 @@
return consumeString(range);
}
+static RefPtr<CSSValue> consumeHyphenateLimit(CSSParserTokenRange& range, CSSValueID valueID)
+{
+ if (range.peek().id() == valueID)
+ return consumeIdent(range);
+ return consumeNumber(range, ValueRangeNonNegative);
+}
+
static RefPtr<CSSValue> consumeColumnWidth(CSSParserTokenRange& range)
{
if (range.peek().id() == CSSValueAuto)
@@ -3332,6 +3339,11 @@
case CSSPropertyWebkitHyphenateCharacter:
case CSSPropertyWebkitLocale:
return consumeLocale(m_range);
+ case CSSPropertyWebkitHyphenateLimitBefore:
+ case CSSPropertyWebkitHyphenateLimitAfter:
+ return consumeHyphenateLimit(m_range, CSSValueAuto);
+ case CSSPropertyWebkitHyphenateLimitLines:
+ return consumeHyphenateLimit(m_range, CSSValueNoLimit);
case CSSPropertyColumnWidth:
return consumeColumnWidth(m_range);
case CSSPropertyColumnCount:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes