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

Unified Diff: third_party/WebKit/Source/core/style/StyleMotionData.h

Issue 2352273002: CSS Motion Path: offset-anchor and offset-position (Closed)
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/style/StyleMotionData.h
diff --git a/third_party/WebKit/Source/core/style/StyleMotionData.h b/third_party/WebKit/Source/core/style/StyleMotionData.h
index 20215c2d36eff63929e0278e751e75e52feeeedf..474868b8a06284970cb3ed21f287d6c88b8584cc 100644
--- a/third_party/WebKit/Source/core/style/StyleMotionData.h
+++ b/third_party/WebKit/Source/core/style/StyleMotionData.h
@@ -8,6 +8,7 @@
#include "core/style/StyleOffsetRotation.h"
#include "core/style/StylePath.h"
#include "platform/Length.h"
+#include "platform/LengthPoint.h"
#include "wtf/Allocator.h"
namespace blink {
@@ -15,8 +16,10 @@ namespace blink {
class StyleMotionData {
DISALLOW_NEW();
public:
- StyleMotionData(StylePath* path, const Length& distance, StyleOffsetRotation rotation)
- : m_path(path)
+ StyleMotionData(const LengthPoint& anchor, const LengthPoint& position, StylePath* path, const Length& distance, StyleOffsetRotation rotation)
+ : m_anchor(anchor)
+ , m_position(position)
+ , m_path(path)
, m_distance(distance)
, m_rotation(rotation)
{
@@ -27,6 +30,8 @@ public:
bool operator!=(const StyleMotionData& o) const { return !(*this == o); }
// Must be public for SET_VAR in ComputedStyle.h
+ LengthPoint m_anchor;
+ LengthPoint m_position;
RefPtr<StylePath> m_path; // nullptr indicates path is 'none'
Length m_distance;
StyleOffsetRotation m_rotation;
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleMotionData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698