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/PathStyleMotionPath.h

Issue 1649003002: Use StylePath instead of (Path)StyleMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/style/PathStyleMotionPath.h
diff --git a/third_party/WebKit/Source/core/style/PathStyleMotionPath.h b/third_party/WebKit/Source/core/style/PathStyleMotionPath.h
deleted file mode 100644
index 579c818bedca2eb5bdc54df747580162944a6dd2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/style/PathStyleMotionPath.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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 PathStyleMotionPath_h
-#define PathStyleMotionPath_h
-
-#include "core/style/StyleMotionPath.h"
-
-#include "platform/graphics/Path.h"
-#include "wtf/Assertions.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class PathStyleMotionPath : public StyleMotionPath {
-public:
- static PassRefPtr<PathStyleMotionPath> create(const String& pathString)
- {
- return adoptRef(new PathStyleMotionPath(pathString));
- }
-
- bool isPathStyleMotionPath() const override { return true; }
-
- bool equals(const PathStyleMotionPath& other) const
- {
- return m_pathString == other.m_pathString;
- }
-
- const Path& path() const { return m_path; }
-
- const String& pathString() const { return m_pathString; }
-
- bool isClosed() const;
-
- float length() const { return m_length; }
-
-private:
- PathStyleMotionPath(const String& pathString);
-
- String m_pathString;
- Path m_path;
- float m_length;
-};
-
-DEFINE_TYPE_CASTS(PathStyleMotionPath, StyleMotionPath, value, value->isPathStyleMotionPath(), value.isPathStyleMotionPath());
-
-} // namespace blink
-
-#endif // PathStyleMotionPath_h
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/PathStyleMotionPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698