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

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

Issue 2533673002: Added CSSPropertyAPI and CSS padding properties which implement this API (Closed)
Patch Set: Added comments and made code neater Created 4 years, 1 month 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/CSSPaddingProperties.h
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h b/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4f9bb8e4393e087b752acf0b678fae6f3ab5cad
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h
@@ -0,0 +1,55 @@
+// Copyright 2016 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 CSSPaddingProperties_h
+#define CSSPaddingProperties_h
+
+#include "core/CSSPropertyNames.h"
+#include "core/css/parser/CSSPropertyParserHelpers.h"
+#include "core/css/properties/CSSPropertyAPI.h"
+#include "platform/Length.h"
+
+namespace blink {
+
+class CSSParserTokenRange;
+
+class CSSPropertyAPIWebkitPaddingStart : public CSSPropertyAPI {
+ STATIC_ONLY(CSSPropertyAPIWebkitPaddingStart);
+
+ public:
+ static const CSSValue* parseSingleValue(CSSParserTokenRange&,
+ const CSSParserContext&);
+ static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingStart; }
+};
+
+class CSSPropertyAPIWebkitPaddingEnd : public CSSPropertyAPI {
+ STATIC_ONLY(CSSPropertyAPIWebkitPaddingEnd);
+
+ public:
+ static const CSSValue* parseSingleValue(CSSParserTokenRange&,
+ const CSSParserContext&);
+ static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingEnd; }
+};
+
+class CSSPropertyAPIWebkitPaddingBefore : public CSSPropertyAPI {
+ STATIC_ONLY(CSSPropertyAPIWebkitPaddingBefore);
+
+ public:
+ static const CSSValue* parseSingleValue(CSSParserTokenRange&,
+ const CSSParserContext&);
+ static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingBefore; }
+};
+
+class CSSPropertyAPIWebkitPaddingAfter : public CSSPropertyAPI {
+ STATIC_ONLY(CSSPropertyAPIWebkitPaddingAfter);
+
+ public:
+ static const CSSValue* parseSingleValue(CSSParserTokenRange&,
+ const CSSParserContext&);
+ static inline CSSPropertyID getID() { return CSSPropertyWebkitPaddingAfter; }
+};
+
+} // namespace blink
+
+#endif // CSSPaddingProperties_h

Powered by Google App Engine
This is Rietveld 408576698