Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h

Issue 2645683003: Added CSSPropertyShapeUtils which holds shape parsing methods. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h b/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h
new file mode 100644
index 0000000000000000000000000000000000000000..99fb1cbc5ad21d8e18af4f7db0a5f378200ef3be
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSPropertyShapeUtils_h
+#define CSSPropertyShapeUtils_h
+
+#include "core/css/parser/CSSParserMode.h"
+#include "wtf/Allocator.h"
+
+namespace blink {
+
+class CSSValue;
+class CSSParserContext;
+class CSSParserTokenRange;
+
+class CSSPropertyShapeUtils {
+ STATIC_ONLY(CSSPropertyShapeUtils);
+
+ static CSSValue* consumeBasicShape(CSSParserTokenRange&,
+ const CSSParserContext*);
+ static bool consumeRadii(CSSValue* horizontalRadii[4],
+ CSSValue* verticalRadii[4],
+ CSSParserTokenRange&,
+ CSSParserMode,
+ bool useLegacyParsing);
+};
+
+} // namespace blink
+
+#endif // CSSPropertyShapeUtils_h

Powered by Google App Engine
This is Rietveld 408576698