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

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

Issue 2247773004: [WIP] CSS Motion Path: offset-anchor and offset-position Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offsetAnchor Created 4 years, 4 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 faa2f6ad40e5ff0a36b92d8d4aef5c4f3e8f426d..474868b8a06284970cb3ed21f287d6c88b8584cc 100644
--- a/third_party/WebKit/Source/core/style/StyleMotionData.h
+++ b/third_party/WebKit/Source/core/style/StyleMotionData.h
@@ -5,9 +5,10 @@
#ifndef StyleMotionData_h
#define StyleMotionData_h
-#include "core/style/StyleMotionRotation.h"
+#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,9 +16,11 @@ namespace blink {
class StyleMotionData {
DISALLOW_NEW();
public:
- StyleMotionData(StylePath* path, const Length& offset, StyleMotionRotation rotation)
- : m_path(path)
- , m_offset(offset)
+ 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,9 +30,11 @@ 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_offset;
- StyleMotionRotation m_rotation;
+ Length m_distance;
+ StyleOffsetRotation m_rotation;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698