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

Side by Side Diff: Source/core/style/StyleMotionData.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/StyleDifference.h ('k') | Source/core/style/StyleScrollSnapData.h » ('j') | 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 StyleMotionData_h 5 #ifndef StyleMotionData_h
6 #define StyleMotionData_h 6 #define StyleMotionData_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "core/style/StyleMotionPath.h" 9 #include "core/style/StyleMotionPath.h"
10 #include "platform/Length.h" 10 #include "platform/Length.h"
11 #include "wtf/Allocator.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class StyleMotionData { 15 class StyleMotionData {
16 DISALLOW_ALLOCATION();
15 public: 17 public:
16 StyleMotionData(StyleMotionPath* path, const Length& offset, float rotation, MotionRotationType rotationType) 18 StyleMotionData(StyleMotionPath* path, const Length& offset, float rotation, MotionRotationType rotationType)
17 : m_path(path) 19 : m_path(path)
18 , m_offset(offset) 20 , m_offset(offset)
19 , m_rotation(rotation) 21 , m_rotation(rotation)
20 , m_rotationType(rotationType) 22 , m_rotationType(rotationType)
21 { 23 {
22 } 24 }
23 25
24 bool operator==(const StyleMotionData&) const; 26 bool operator==(const StyleMotionData&) const;
25 27
26 bool operator!=(const StyleMotionData& o) const { return !(*this == o); } 28 bool operator!=(const StyleMotionData& o) const { return !(*this == o); }
27 29
28 // Must be public for SET_VAR in ComputedStyle.h 30 // Must be public for SET_VAR in ComputedStyle.h
29 RefPtr<StyleMotionPath> m_path; // nullptr indicates path is 'none' 31 RefPtr<StyleMotionPath> m_path; // nullptr indicates path is 'none'
30 Length m_offset; 32 Length m_offset;
31 float m_rotation; 33 float m_rotation;
32 MotionRotationType m_rotationType; 34 MotionRotationType m_rotationType;
33 }; 35 };
34 36
35 } // namespace blink 37 } // namespace blink
36 38
37 #endif // StyleMotionData_h 39 #endif // StyleMotionData_h
OLDNEW
« no previous file with comments | « Source/core/style/StyleDifference.h ('k') | Source/core/style/StyleScrollSnapData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698