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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSCalcLength.h

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSCalcLength_h 5 #ifndef CSSCalcLength_h
6 #define CSSCalcLength_h 6 #define CSSCalcLength_h
7 7
8 #include "core/css/cssom/CSSLengthValue.h" 8 #include "core/css/cssom/CSSLengthValue.h"
9 #include "wtf/BitVector.h" 9 #include "wtf/BitVector.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace cssom {
12 13
13 class CSSCalcDictionary; 14 class CSSCalcDictionary;
14 class CSSSimpleLength; 15 class CSSSimpleLength;
15 16
16 class CORE_EXPORT CSSCalcLength final : public CSSLengthValue { 17 class CORE_EXPORT CSSCalcLength final : public CSSLengthValue {
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 static CSSCalcLength* create(const CSSLengthValue*); 20 static CSSCalcLength* create(const CSSLengthValue*);
20 static CSSCalcLength* create(const CSSCalcDictionary&, ExceptionState&); 21 static CSSCalcLength* create(const CSSCalcDictionary&, ExceptionState&);
21 static CSSCalcLength* create(const CSSLengthValue* length, ExceptionState&) 22 static CSSCalcLength* create(const CSSLengthValue* length, ExceptionState&)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 BitVector m_hasValues; 97 BitVector m_hasValues;
97 }; 98 };
98 99
99 #define DEFINE_CALC_LENGTH_TYPE_CASTS(argumentType) \ 100 #define DEFINE_CALC_LENGTH_TYPE_CASTS(argumentType) \
100 DEFINE_TYPE_CASTS(CSSCalcLength, argumentType, value, \ 101 DEFINE_TYPE_CASTS(CSSCalcLength, argumentType, value, \
101 value->type() == CSSLengthValue::StyleValueType::CalcLengthType, \ 102 value->type() == CSSLengthValue::StyleValueType::CalcLengthType, \
102 value.type() == CSSLengthValue::StyleValueType::CalcLengthType) 103 value.type() == CSSLengthValue::StyleValueType::CalcLengthType)
103 104
104 DEFINE_CALC_LENGTH_TYPE_CASTS(CSSStyleValue); 105 DEFINE_CALC_LENGTH_TYPE_CASTS(CSSStyleValue);
105 106
107 } // namespace cssom
106 } // namespace blink 108 } // namespace blink
107 109
108 #endif 110 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp ('k') | third_party/WebKit/Source/core/css/cssom/CSSCalcLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698