[CSS Parser] Support the -webkit-letterpress value for text-decoration
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2016 18:31:54 +0000 (18:31 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2016 18:31:54 +0000 (18:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=165313

Reviewed by Dean Jackson.

* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeTextDecorationLine):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209245 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/parser/CSSPropertyParser.cpp

index db6fdd6..6152bc5 100644 (file)
@@ -1,5 +1,15 @@
 2016-12-02  Dave Hyatt  <hyatt@apple.com>
 
 2016-12-02  Dave Hyatt  <hyatt@apple.com>
 
+        [CSS Parser] Support the -webkit-letterpress value for text-decoration
+        https://bugs.webkit.org/show_bug.cgi?id=165313
+
+        Reviewed by Dean Jackson.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::consumeTextDecorationLine):
+
+2016-12-02  Dave Hyatt  <hyatt@apple.com>
+
         [CSS Parser] Fix the color-gamut media query evaluator
         https://bugs.webkit.org/show_bug.cgi?id=165309
 
         [CSS Parser] Fix the color-gamut media query evaluator
         https://bugs.webkit.org/show_bug.cgi?id=165309
 
index 06dc72f..ad420d6 100644 (file)
@@ -1614,7 +1614,11 @@ static RefPtr<CSSValue> consumeTextDecorationLine(CSSParserTokenRange& range)
 
     RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
     while (true) {
 
     RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
     while (true) {
+#if ENABLE(LETTERPRESS)
+        RefPtr<CSSPrimitiveValue> ident = consumeIdent<CSSValueBlink, CSSValueUnderline, CSSValueOverline, CSSValueLineThrough, CSSValueWebkitLetterpress>(range);
+#else
         RefPtr<CSSPrimitiveValue> ident = consumeIdent<CSSValueBlink, CSSValueUnderline, CSSValueOverline, CSSValueLineThrough>(range);
         RefPtr<CSSPrimitiveValue> ident = consumeIdent<CSSValueBlink, CSSValueUnderline, CSSValueOverline, CSSValueLineThrough>(range);
+#endif
         if (!ident)
             break;
         if (list->hasValue(ident.get()))
         if (!ident)
             break;
         if (list->hasValue(ident.get()))