Fix the !ENABLE(CSS_BOX_DECORATION_BREAK) build
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Nov 2016 13:48:57 +0000 (13:48 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Nov 2016 13:48:57 +0000 (13:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=164478

Reviewed by Darin Adler.

* css/parser/CSSParserFastPaths.cpp:
(WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):

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

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

index eadcf02..f3a787e 100644 (file)
@@ -1,5 +1,15 @@
 2016-11-14  Csaba Osztrogon√°c  <ossy@webkit.org>
 
+        Fix the !ENABLE(CSS_BOX_DECORATION_BREAK) build
+        https://bugs.webkit.org/show_bug.cgi?id=164478
+
+        Reviewed by Darin Adler.
+
+        * css/parser/CSSParserFastPaths.cpp:
+        (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+
+2016-11-14  Csaba Osztrogon√°c  <ossy@webkit.org>
+
         Fix the !ENABLE(CSS_GRID_LAYOUT) build
         https://bugs.webkit.org/show_bug.cgi?id=164477
 
index 79d4181..bb91292 100644 (file)
@@ -680,10 +680,12 @@ bool CSSParserFastPaths::isValidKeywordPropertyAndValue(CSSPropertyID propertyId
 #endif
     case CSSPropertyWebkitBoxAlign:
         return valueID == CSSValueStretch || valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline;
+#if ENABLE(CSS_BOX_DECORATION_BREAK)
     case CSSPropertyWebkitBoxDecorationBreak:
         return valueID == CSSValueClone || valueID == CSSValueSlice;
     case CSSPropertyWebkitBoxDirection:
         return valueID == CSSValueNormal || valueID == CSSValueReverse;
+#endif
     case CSSPropertyWebkitBoxLines:
         return valueID == CSSValueSingle || valueID == CSSValueMultiple;
     case CSSPropertyWebkitBoxOrient: