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

Side by Side Diff: Source/core/style/TransformOrigin.h

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/style/StyleSelfAlignmentData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 TransformOrigin_h 5 #ifndef TransformOrigin_h
6 #define TransformOrigin_h 6 #define TransformOrigin_h
7 7
8 #include "platform/Length.h" 8 #include "platform/Length.h"
9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class TransformOrigin { 13 class TransformOrigin {
14 DISALLOW_ALLOCATION();
13 public: 15 public:
14 TransformOrigin(const Length& x, const Length& y, float z) : m_x(x), m_y(y), m_z(z) { } 16 TransformOrigin(const Length& x, const Length& y, float z) : m_x(x), m_y(y), m_z(z) { }
15 bool operator==(const TransformOrigin& o) const { return m_x == o.m_x && m_y == o.m_y && m_z == o.m_z; } 17 bool operator==(const TransformOrigin& o) const { return m_x == o.m_x && m_y == o.m_y && m_z == o.m_z; }
16 bool operator!=(const TransformOrigin& o) const { return !(*this == o); } 18 bool operator!=(const TransformOrigin& o) const { return !(*this == o); }
17 const Length& x() const { return m_x; } 19 const Length& x() const { return m_x; }
18 const Length& y() const { return m_y; } 20 const Length& y() const { return m_y; }
19 float z() const { return m_z; } 21 float z() const { return m_z; }
20 private: 22 private:
21 Length m_x; 23 Length m_x;
22 Length m_y; 24 Length m_y;
23 float m_z; 25 float m_z;
24 }; 26 };
25 27
26 } // namespace blink 28 } // namespace blink
27 29
28 #endif // TransformOrigin_h 30 #endif // TransformOrigin_h
OLDNEW
« no previous file with comments | « Source/core/style/StyleSelfAlignmentData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698