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

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

Issue 2879233002: [css-typed-om] Replace cssText with stringifier at CSSTransformComponent (Closed)
Patch Set: [css-typed-om] replace cssText with toString at CSSTransformComponent Created 3 years, 7 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 "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "platform/bindings/ScriptWrappable.h" 10 #include "platform/bindings/ScriptWrappable.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 transform_type != kScale3DType && 43 transform_type != kScale3DType &&
44 transform_type != kTranslation3DType; 44 transform_type != kTranslation3DType;
45 } 45 }
46 46
47 virtual ~CSSTransformComponent() {} 47 virtual ~CSSTransformComponent() {}
48 48
49 virtual TransformComponentType GetType() const = 0; 49 virtual TransformComponentType GetType() const = 0;
50 50
51 bool is2D() const { return Is2DComponentType(GetType()); } 51 bool is2D() const { return Is2DComponentType(GetType()); }
52 52
53 String cssText() const { return ToCSSValue()->CssText(); } 53 String toString() const { return ToCSSValue()->CssText(); }
54 54
55 virtual CSSFunctionValue* ToCSSValue() const = 0; 55 virtual CSSFunctionValue* ToCSSValue() const = 0;
56 virtual CSSMatrixComponent* asMatrix() const = 0; 56 virtual CSSMatrixComponent* asMatrix() const = 0;
57 57
58 DEFINE_INLINE_VIRTUAL_TRACE() {} 58 DEFINE_INLINE_VIRTUAL_TRACE() {}
59 59
60 protected: 60 protected:
61 CSSTransformComponent() = default; 61 CSSTransformComponent() = default;
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif 66 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698