Only define MAX_GRID_TRACK_REPETITIONS if CSS_GRID_LAYOUT is enabled.
authormatthew_hanson@apple.com <matthew_hanson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 May 2014 00:13:15 +0000 (00:13 +0000)
committermatthew_hanson@apple.com <matthew_hanson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 May 2014 00:13:15 +0000 (00:13 +0000)
This was causing -Wunused-const-variable errors.

* css/CSSParser.cpp: Add include guard.

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

Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp

index c057f32..44ec1d9 100644 (file)
@@ -1,3 +1,13 @@
+2014-05-14  Matthew Hanson  <matthew_hanson@apple.com>
+
+        Only define MAX_GRID_TRACK_REPETITIONS if CSS_GRID_LAYOUT is enabled.
+
+        Reviewed by Dean Jackson.
+
+        This was causing -Wunused-const-variable errors.
+
+        * css/CSSParser.cpp: Add include guard.
+
 2014-05-14  Beth Dakin  <bdakin@apple.com>
 
         Tile cache has way too many tiles when pinch-zoomed in
index b020fda..097e316 100644 (file)
@@ -149,7 +149,9 @@ namespace WebCore {
 
 static const unsigned INVALID_NUM_PARSED_PROPERTIES = UINT_MAX;
 static const double MAX_SCALE = 1000000;
+#if ENABLE(CSS_GRID_LAYOUT)
 static const unsigned MAX_GRID_TRACK_REPETITIONS = 10000;
+#endif
 
 template <unsigned N>
 static bool equal(const CSSParserString& a, const char (&b)[N])