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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPath.h

Issue 1425913004: [SVG] Shared <use> path geometry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 2 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/svg/SVGPath.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPath.h b/third_party/WebKit/Source/core/svg/SVGPath.h
index 5ca84a9dd2a30795d03cd46e554e11abd02604b7..0f9ac5b84d65d19b3d37552eb8d56e7f654887ff 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.h
+++ b/third_party/WebKit/Source/core/svg/SVGPath.h
@@ -36,6 +36,7 @@
namespace blink {
class ExceptionState;
+class Path;
class SVGPathByteStream;
class SVGPath : public SVGPropertyBase {
@@ -49,6 +50,8 @@ public:
~SVGPath() override;
+ const Path& path() const;
+
const SVGPathByteStream& byteStream() const;
SVGPathByteStream& mutableByteStream();
@@ -68,7 +71,11 @@ private:
SVGPath();
explicit SVGPath(PassOwnPtr<SVGPathByteStream>);
+ SVGPathByteStream& ensureByteStream();
+ void byteStreamWillChange();
+
OwnPtr<SVGPathByteStream> m_byteStream;
pdr. 2015/10/30 16:46:01 I hope we can combine the byte stream and skpath a
+ mutable OwnPtr<Path> m_cachedPath;
};
inline PassRefPtrWillBeRawPtr<SVGPath> toSVGPath(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElementRareData.h ('k') | third_party/WebKit/Source/core/svg/SVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698