[CSS Parser] Enhance grid-auto-flow parsing to allow dense first.
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2016 04:30:22 +0000 (04:30 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2016 04:30:22 +0000 (04:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164110

Reviewed by Simon Fraser.

* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertGridAutoFlow):

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

Source/WebCore/ChangeLog
Source/WebCore/css/StyleBuilderConverter.h

index dbeba98..6da118c 100644 (file)
@@ -1,3 +1,13 @@
+2016-10-27  Dave Hyatt  <hyatt@apple.com>
+
+        [CSS Parser] Enhance grid-auto-flow parsing to allow dense first.
+        https://bugs.webkit.org/show_bug.cgi?id=164110
+
+        Reviewed by Simon Fraser.
+
+        * css/StyleBuilderConverter.h:
+        (WebCore::StyleBuilderConverter::convertGridAutoFlow):
+
 2016-10-27  Simon Fraser  <simon.fraser@apple.com>
 
         constify the CSSValue arguments to StyleBuilderConverter functions
index 1d14178..fddbda6 100644 (file)
@@ -1044,6 +1044,10 @@ inline GridAutoFlow StyleBuilderConverter::convertGridAutoFlow(StyleResolver&, c
         else
             autoFlow = AutoFlowColumn;
         break;
+    case CSSValueDense:
+        if (second && second->valueID() == CSSValueColumn)
+            return AutoFlowColumnDense;
+        return AutoFlowRowDense;
     default:
         ASSERT_NOT_REACHED();
         break;