Title: [209338] trunk/Source/WebCore
Revision
209338
Author
[email protected]
Date
2016-12-05 12:11:03 -0800 (Mon, 05 Dec 2016)

Log Message

[CSS Parser] Fix calc() with -webkit-line-clamp
https://bugs.webkit.org/show_bug.cgi?id=165398

Reviewed by Zalan Bujtas.

Remove the aggressive token type checking up front, since it was causing calc() to not
be allowed.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209337 => 209338)


--- trunk/Source/WebCore/ChangeLog	2016-12-05 20:02:11 UTC (rev 209337)
+++ trunk/Source/WebCore/ChangeLog	2016-12-05 20:11:03 UTC (rev 209338)
@@ -1,5 +1,18 @@
 2016-12-05  Dave Hyatt  <[email protected]>
 
+        [CSS Parser] Fix calc() with -webkit-line-clamp
+        https://bugs.webkit.org/show_bug.cgi?id=165398
+
+        Reviewed by Zalan Bujtas.
+
+        Remove the aggressive token type checking up front, since it was causing calc() to not
+        be allowed.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::consumeLineClamp):
+
+2016-12-05  Dave Hyatt  <[email protected]>
+
         [CSS Parser] Support -webkit-text-decoration
         https://bugs.webkit.org/show_bug.cgi?id=165391
 

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (209337 => 209338)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-12-05 20:02:11 UTC (rev 209337)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-12-05 20:11:03 UTC (rev 209338)
@@ -1204,8 +1204,6 @@
 
 static RefPtr<CSSPrimitiveValue> consumeLineClamp(CSSParserTokenRange& range)
 {
-    if (range.peek().type() != PercentageToken && range.peek().type() != NumberToken)
-        return nullptr;
     RefPtr<CSSPrimitiveValue> clampValue = consumePercent(range, ValueRangeNonNegative);
     if (clampValue)
         return clampValue;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to