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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleMotionData.h

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ 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 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/StyleOffsetRotation.h" 8 #include "core/style/StyleOffsetRotation.h"
9 #include "core/style/StylePath.h" 9 #include "core/style/StylePath.h"
10 #include "platform/Length.h" 10 #include "platform/Length.h"
11 #include "platform/LengthPoint.h" 11 #include "platform/LengthPoint.h"
12 #include "platform/wtf/Allocator.h" 12 #include "platform/wtf/Allocator.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class StyleMotionData { 16 class StyleMotionData {
17 DISALLOW_NEW(); 17 DISALLOW_NEW();
18 18
19 public: 19 public:
20 StyleMotionData(const LengthPoint& anchor, 20 StyleMotionData(const LengthPoint& anchor,
21 const LengthPoint& position, 21 const LengthPoint& position,
22 StylePath* path, 22 BasicShape* path,
23 const Length& distance, 23 const Length& distance,
24 StyleOffsetRotation rotation) 24 StyleOffsetRotation rotation)
25 : anchor_(anchor), 25 : anchor_(anchor),
26 position_(position), 26 position_(position),
27 path_(path), 27 path_(path),
28 distance_(distance), 28 distance_(distance),
29 rotation_(rotation) {} 29 rotation_(rotation) {}
30 30
31 bool operator==(const StyleMotionData&) const; 31 bool operator==(const StyleMotionData&) const;
32 32
33 bool operator!=(const StyleMotionData& o) const { return !(*this == o); } 33 bool operator!=(const StyleMotionData& o) const { return !(*this == o); }
34 34
35 // Must be public for SET_VAR in ComputedStyle.h 35 // Must be public for SET_VAR in ComputedStyle.h
36 LengthPoint anchor_; 36 LengthPoint anchor_;
37 LengthPoint position_; 37 LengthPoint position_;
38 RefPtr<StylePath> path_; // nullptr indicates path is 'none' 38 RefPtr<BasicShape> path_; // nullptr indicates path is 'none'
39 Length distance_; 39 Length distance_;
40 StyleOffsetRotation rotation_; 40 StyleOffsetRotation rotation_;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // StyleMotionData_h 45 #endif // StyleMotionData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698