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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h

Issue 1545713003: Add StylePath and use it to store 'd' in ComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015->2016; Remove unnecessary explicit. Created 4 years, 11 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/animation/animatable/AnimatablePath.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h b/third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h
index 27c38a6f4c6adfbf9065db6f5a431de38cc1fec1..1608b38ddc4e07a29a17d8f1cb0cf2575a0f5ae4 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatablePath.h
@@ -7,33 +7,33 @@
#include "core/CoreExport.h"
#include "core/animation/animatable/AnimatableValue.h"
-#include "core/css/CSSPathValue.h"
+#include "core/style/StylePath.h"
namespace blink {
class CORE_EXPORT AnimatablePath final : public AnimatableValue {
public:
~AnimatablePath() override { }
- static PassRefPtr<AnimatablePath> create(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue)
+ static PassRefPtr<AnimatablePath> create(PassRefPtr<StylePath> path)
{
- return adoptRef(new AnimatablePath(pathValue));
+ return adoptRef(new AnimatablePath(path));
}
- CSSPathValue* pathValue() const { return m_pathValue.get(); }
+ StylePath* path() const;
protected:
PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const override;
bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- explicit AnimatablePath(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue)
- : m_pathValue(pathValue)
+ explicit AnimatablePath(PassRefPtr<StylePath> path)
+ : m_path(path)
{
- ASSERT(m_pathValue);
+ ASSERT(m_path);
}
AnimatableType type() const override { return TypePath; }
bool equalTo(const AnimatableValue*) const override;
- const RefPtrWillBePersistent<CSSPathValue> m_pathValue;
+ const RefPtr<StylePath> m_path;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatablePath, isPath());

Powered by Google App Engine
This is Rietveld 408576698