[CSS Parser] Support margin-box in shape parsing.
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Nov 2016 23:28:10 +0000 (23:28 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Nov 2016 23:28:10 +0000 (23:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164658

Reviewed by Sam Weinig.

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

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

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

index 0fc7316..54e270a 100644 (file)
@@ -1,5 +1,15 @@
 2016-11-11  Dave Hyatt  <hyatt@apple.com>
 
+        [CSS Parser] Support margin-box in shape parsing.
+        https://bugs.webkit.org/show_bug.cgi?id=164658
+
+        Reviewed by Sam Weinig.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::consumeBasicShapeOrBox):
+
+2016-11-11  Dave Hyatt  <hyatt@apple.com>
+
         [CSS Parser] Add support for -webkit-mask-source-type
         https://bugs.webkit.org/show_bug.cgi?id=164657
 
index 41f9072..92e1e9f 100644 (file)
@@ -2317,7 +2317,7 @@ static RefPtr<CSSValue> consumeBasicShapeOrBox(CSSParserTokenRange& range, const
             componentValue = consumeBasicShape(range, context);
             shapeFound = true;
         } else if (range.peek().type() == IdentToken && !boxFound) {
-            componentValue = consumeIdent<CSSValueContentBox, CSSValuePaddingBox, CSSValueBorderBox, CSSValueFill, CSSValueStroke, CSSValueViewBox>(range);
+            componentValue = consumeIdent<CSSValueContentBox, CSSValuePaddingBox, CSSValueBorderBox, CSSValueMarginBox, CSSValueFill, CSSValueStroke, CSSValueViewBox>(range);
             boxFound = true;
         }
         if (!componentValue)