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

Unified Diff: third_party/WebKit/Source/core/style/StylePath.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/StylePath.h
diff --git a/third_party/WebKit/Source/core/style/StylePath.h b/third_party/WebKit/Source/core/style/StylePath.h
index b98ff9148aeb51c31a5d49708cebd1b312ddba2d..76d94412007930d3e4e928fc518b029e0576a6be 100644
--- a/third_party/WebKit/Source/core/style/StylePath.h
+++ b/third_party/WebKit/Source/core/style/StylePath.h
@@ -25,6 +25,9 @@ public:
static StylePath* emptyPath();
const Path& path() const;
+ float length() const;
+ bool isClosed() const;
+
const SVGPathByteStream& byteStream() const;
PassRefPtrWillBeRawPtr<CSSValue> computedCSSValue() const;
@@ -36,6 +39,7 @@ private:
RefPtr<SVGPathByteStream> m_byteStream;
mutable OwnPtr<Path> m_path;
+ mutable float m_pathLength;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleMotionPath.h ('k') | third_party/WebKit/Source/core/style/StylePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698