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

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

Issue 2647623002: Added CSSPropertyBackgroundComponentUtils which holds background component parsing methods. (Closed)
Patch Set: merge 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/CSSPropertyBackgroundComponentUtils.h
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyBackgroundComponentUtils.h b/third_party/WebKit/Source/core/css/properties/CSSPropertyBackgroundComponentUtils.h
new file mode 100644
index 0000000000000000000000000000000000000000..40e35fb779304223902a4de56b2663688bd4d67f
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyBackgroundComponentUtils.h
@@ -0,0 +1,34 @@
+// 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 CSSPropertyBackgroundComponentUtils_h
+#define CSSPropertyBackgroundComponentUtils_h
+
+#include "core/CSSPropertyNames.h"
+#include "core/css/parser/CSSParserContext.h"
+
+#include "wtf/Allocator.h"
+
+namespace blink {
+
+class CSSParserTokenRange;
+class CSSValue;
+
+class CSSPropertyBackgroundComponentUtils {
+ STATIC_ONLY(CSSPropertyBackgroundComponentUtils);
+
+ static CSSValue* consumeBackgroundSize(CSSPropertyID unresolvedProperty,
+ CSSParserTokenRange&,
+ CSSParserMode);
+
+ static void addBackgroundValue(CSSValue*& list, CSSValue*);
+
+ static CSSValue* consumeBackgroundComponent(CSSPropertyID unresolvedProperty,
+ CSSParserTokenRange&,
+ const CSSParserContext*);
+};
+
+} // namespace blink
+
+#endif // CSSPropertyBackgroundComponentUtils_h

Powered by Google App Engine
This is Rietveld 408576698