Title: [88448] trunk
Revision
88448
Author
[email protected]
Date
2011-06-09 07:12:56 -0700 (Thu, 09 Jun 2011)

Log Message

2011-06-09  Mike Lawther  <[email protected]>

        Reviewed by Kent Tamura.

        Parsing issue with -webkit-calc
        https://bugs.webkit.org/show_bug.cgi?id=62276

        Set the CSSParserString for the calc functions.

        * css3/calc/regression-62276-expected.txt: Added.
        * css3/calc/regression-62276.html: Added.
2011-06-09  Mike Lawther  <[email protected]>

        Reviewed by Kent Tamura.

        Parsing issue with -webkit-calc
        https://bugs.webkit.org/show_bug.cgi?id=62276

        Set the CSSParserString for the calc functions.

        Test: css3/calc/regression-62276.html

        * css/CSSParser.cpp:
        (WebCore::CSSParser::lex):

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (88447 => 88448)


--- trunk/LayoutTests/ChangeLog	2011-06-09 14:11:35 UTC (rev 88447)
+++ trunk/LayoutTests/ChangeLog	2011-06-09 14:12:56 UTC (rev 88448)
@@ -1,3 +1,15 @@
+2011-06-09  Mike Lawther  <[email protected]>
+
+        Reviewed by Kent Tamura.
+
+        Parsing issue with -webkit-calc
+        https://bugs.webkit.org/show_bug.cgi?id=62276
+
+        Set the CSSParserString for the calc functions.
+
+        * css3/calc/regression-62276-expected.txt: Added.
+        * css3/calc/regression-62276.html: Added.
+
 2011-06-09  Csaba Osztrogonác  <[email protected]>
 
         REGRESSION(r88393): Tests fail on Qt platform

Added: trunk/LayoutTests/css3/calc/regression-62276-expected.txt (0 => 88448)


--- trunk/LayoutTests/css3/calc/regression-62276-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/css3/calc/regression-62276-expected.txt	2011-06-09 14:12:56 UTC (rev 88448)
@@ -0,0 +1,3 @@
+The test passes if it does not crash
+
+

Added: trunk/LayoutTests/css3/calc/regression-62276.html (0 => 88448)


--- trunk/LayoutTests/css3/calc/regression-62276.html	                        (rev 0)
+++ trunk/LayoutTests/css3/calc/regression-62276.html	2011-06-09 14:12:56 UTC (rev 88448)
@@ -0,0 +1,12 @@
+<p>The test passes if it does not crash</p>
+
+<a style="-webkit-box-reflect:above 1px -webkit-calc(1)"></a>
+<a style="-webkit-box-reflect:above 1px -webkit-min(1)"></a>
+<a style="-webkit-box-reflect:above 1px -webkit-max(1)"></a>
+    
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+</script>
+
+

Modified: trunk/Source/WebCore/ChangeLog (88447 => 88448)


--- trunk/Source/WebCore/ChangeLog	2011-06-09 14:11:35 UTC (rev 88447)
+++ trunk/Source/WebCore/ChangeLog	2011-06-09 14:12:56 UTC (rev 88448)
@@ -1,3 +1,17 @@
+2011-06-09  Mike Lawther  <[email protected]>
+
+        Reviewed by Kent Tamura.
+
+        Parsing issue with -webkit-calc
+        https://bugs.webkit.org/show_bug.cgi?id=62276
+
+        Set the CSSParserString for the calc functions.
+
+        Test: css3/calc/regression-62276.html
+
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::lex):
+
 2011-06-09  Robert Hogan  <[email protected]>
 
         Reviewed by Andreas Kling.

Modified: trunk/Source/WebCore/css/CSSParser.cpp (88447 => 88448)


--- trunk/Source/WebCore/css/CSSParser.cpp	2011-06-09 14:11:35 UTC (rev 88447)
+++ trunk/Source/WebCore/css/CSSParser.cpp	2011-06-09 14:12:56 UTC (rev 88448)
@@ -5959,6 +5959,9 @@
     case FUNCTION:
     case ANYFUNCTION:
     case NOTFUNCTION:
+    case CALCFUNCTION:
+    case MINFUNCTION:
+    case MAXFUNCTION:
         yylval->string.characters = t;
         yylval->string.length = length;
         break;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to