Chromium Code Reviews| 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..0ab370206cbdad97ffac0347d444cb0a197a15aa |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPaddingProperties.h |
| @@ -0,0 +1,55 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
sashab
2016/11/30 23:48:39
Rename to CSSPropertyAPIPadding.h
Ctrl+Shift+F -
aazzam
2016/12/01 04:17:53
done
|
| +// 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 |
|
sashab
2016/11/30 23:48:39
Change these after rename
aazzam
2016/12/01 04:17:53
done
|
| + |
| +#include "core/CSSPropertyNames.h" |
| +#include "core/css/parser/CSSPropertyParserHelpers.h" |
|
sashab
2016/11/30 23:48:39
Try forward-declare CSSParserContext as well and r
aazzam
2016/12/01 04:17:53
done
|
| +#include "core/css/properties/CSSPropertyAPI.h" |
| +#include "platform/Length.h" |
|
sashab
2016/11/30 23:48:39
Might not be needed anymore
sashab
2016/11/30 23:48:39
Might not be needed anymore
aazzam
2016/12/01 04:17:53
done
|
| + |
| +namespace blink { |
| + |
| +class CSSParserTokenRange; |
| + |
| +class CSSPropertyAPIWebkitPaddingStart : public CSSPropertyAPI { |
| + STATIC_ONLY(CSSPropertyAPIWebkitPaddingStart); |
|
sashab
2016/11/30 23:48:39
Try put this on CSSPropertyAPI and remove it from
aazzam
2016/12/01 04:17:53
done
|
| + |
| + public: |
| + static const CSSPropertyID id = CSSPropertyWebkitPaddingStart; |
| + static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| + const CSSParserContext&); |
| +}; |
| + |
| +class CSSPropertyAPIWebkitPaddingEnd : public CSSPropertyAPI { |
| + STATIC_ONLY(CSSPropertyAPIWebkitPaddingEnd); |
| + |
| + public: |
| + static const CSSPropertyID id = CSSPropertyWebkitPaddingEnd; |
| + static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| + const CSSParserContext&); |
| +}; |
| + |
| +class CSSPropertyAPIWebkitPaddingBefore : public CSSPropertyAPI { |
| + STATIC_ONLY(CSSPropertyAPIWebkitPaddingBefore); |
| + |
| + public: |
| + static const CSSPropertyID id = CSSPropertyWebkitPaddingBefore; |
| + static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| + const CSSParserContext&); |
| +}; |
| + |
| +class CSSPropertyAPIWebkitPaddingAfter : public CSSPropertyAPI { |
| + STATIC_ONLY(CSSPropertyAPIWebkitPaddingAfter); |
| + |
| + public: |
| + static const CSSPropertyID id = CSSPropertyWebkitPaddingAfter; |
| + static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| + const CSSParserContext&); |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // CSSPaddingProperties_h |