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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSTranslation.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 CSSTranslation_h 5 #ifndef CSSTranslation_h
6 #define CSSTranslation_h 6 #define CSSTranslation_h
7 7
8 #include "core/css/cssom/CSSLengthValue.h" 8 #include "core/css/cssom/CSSLengthValue.h"
9 #include "core/css/cssom/CSSTransformComponent.h" 9 #include "core/css/cssom/CSSTransformComponent.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace cssom {
12 13
13 class ExceptionState; 14 class ExceptionState;
14 15
15 class CORE_EXPORT CSSTranslation final : public CSSTransformComponent { 16 class CORE_EXPORT CSSTranslation final : public CSSTransformComponent {
16 WTF_MAKE_NONCOPYABLE(CSSTranslation); 17 WTF_MAKE_NONCOPYABLE(CSSTranslation);
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, Exceptio nState&) 20 static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, Exceptio nState&)
20 { 21 {
21 return new CSSTranslation(x, y, nullptr); 22 return new CSSTranslation(x, y, nullptr);
(...skipping 29 matching lines...) Expand all
51 , m_z(z) 52 , m_z(z)
52 { } 53 { }
53 54
54 bool is2D() const { return !m_z; } 55 bool is2D() const { return !m_z; }
55 56
56 Member<CSSLengthValue> m_x; 57 Member<CSSLengthValue> m_x;
57 Member<CSSLengthValue> m_y; 58 Member<CSSLengthValue> m_y;
58 Member<CSSLengthValue> m_z; 59 Member<CSSLengthValue> m_z;
59 }; 60 };
60 61
62 } // namespace cssom
61 } // namespace blink 63 } // namespace blink
62 64
65
63 #endif 66 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698