blob: 3a635cdcfff8300760fe39614698aeeeb5c5ac40 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef StyleMotionData_h
#define StyleMotionData_h
#include "core/style/ComputedStyleConstants.h"
#include "core/style/StyleMotionPath.h"
#include "platform/Length.h"
#include "wtf/Allocator.h"
namespace blink {
class StyleMotionData {
DISALLOW_NEW();
public:
StyleMotionData(StyleMotionPath* path, const Length& offset, float rotation, MotionRotationType rotationType)
: m_path(path)
, m_offset(offset)
, m_rotation(rotation)
, m_rotationType(rotationType)
{
}
bool operator==(const StyleMotionData&) const;
bool operator!=(const StyleMotionData& o) const { return !(*this == o); }
// Must be public for SET_VAR in ComputedStyle.h
RefPtr<StyleMotionPath> m_path; // nullptr indicates path is 'none'
Length m_offset;
float m_rotation;
MotionRotationType m_rotationType;
};
} // namespace blink
#endif // StyleMotionData_h