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

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

Issue 2711473005: Rename CSSMatrixTransformComponent -> CSSMatrixComponent (Closed)
Patch Set: Rename cssMatrixTransformComponent.html => cssMatrixComponent.html Created 3 years, 9 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 CSSTransformComponent_h 5 #ifndef CSSTransformComponent_h
6 #define CSSTransformComponent_h 6 #define CSSTransformComponent_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSFunctionValue.h" 10 #include "core/css/CSSFunctionValue.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CSSMatrixTransformComponent; 15 class CSSMatrixComponent;
16 16
17 class CORE_EXPORT CSSTransformComponent 17 class CORE_EXPORT CSSTransformComponent
18 : public GarbageCollectedFinalized<CSSTransformComponent>, 18 : public GarbageCollectedFinalized<CSSTransformComponent>,
19 public ScriptWrappable { 19 public ScriptWrappable {
20 WTF_MAKE_NONCOPYABLE(CSSTransformComponent); 20 WTF_MAKE_NONCOPYABLE(CSSTransformComponent);
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 22
23 public: 23 public:
24 enum TransformComponentType { 24 enum TransformComponentType {
25 MatrixType, 25 MatrixType,
(...skipping 18 matching lines...) Expand all
44 44
45 virtual ~CSSTransformComponent() {} 45 virtual ~CSSTransformComponent() {}
46 46
47 virtual TransformComponentType type() const = 0; 47 virtual TransformComponentType type() const = 0;
48 48
49 bool is2D() const { return is2DComponentType(type()); } 49 bool is2D() const { return is2DComponentType(type()); }
50 50
51 String cssText() const { return toCSSValue()->cssText(); } 51 String cssText() const { return toCSSValue()->cssText(); }
52 52
53 virtual CSSFunctionValue* toCSSValue() const = 0; 53 virtual CSSFunctionValue* toCSSValue() const = 0;
54 virtual CSSMatrixTransformComponent* asMatrix() const = 0; 54 virtual CSSMatrixComponent* asMatrix() const = 0;
55 55
56 DEFINE_INLINE_VIRTUAL_TRACE() {} 56 DEFINE_INLINE_VIRTUAL_TRACE() {}
57 57
58 protected: 58 protected:
59 CSSTransformComponent() = default; 59 CSSTransformComponent() = default;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif 64 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSSkew.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698