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

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

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/StyleMotionData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleMotionData.cpp b/third_party/WebKit/Source/core/style/StyleMotionData.cpp
index 4683291f40add96e122ee612595944f2fd329098..4438a2dc54831ba0421f5cfc6fe5342369eb0fb4 100644
--- a/third_party/WebKit/Source/core/style/StyleMotionData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleMotionData.cpp
@@ -4,8 +4,6 @@
#include "core/style/StyleMotionData.h"
-#include "core/style/PathStyleMotionPath.h"
-
namespace blink {
bool StyleMotionData::operator==(const StyleMotionData& o) const
@@ -16,10 +14,7 @@ bool StyleMotionData::operator==(const StyleMotionData& o) const
if (!m_path || !o.m_path)
return !m_path && !o.m_path;
- if (m_path->isPathStyleMotionPath() && o.m_path->isPathStyleMotionPath())
- return toPathStyleMotionPath(*m_path).equals(toPathStyleMotionPath(*o.m_path));
-
- return false;
+ return m_path->equals(*o.m_path);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleMotionData.h ('k') | third_party/WebKit/Source/core/style/StyleMotionPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698