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

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

Issue 1460253002: SVGPath object "mutability" cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; byteStreamWillChange->byteStreamChanged; Drop some includes. Created 5 years, 1 month 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 781f6d51952be7a6f505f6f6b288958cc84fc063..37ae4f60958337305cf04198acaeff17ea53bfe7 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.h
+++ b/third_party/WebKit/Source/core/svg/SVGPath.h
@@ -47,13 +47,16 @@ public:
{
return adoptRefWillBeNoop(new SVGPath());
}
+ static PassRefPtrWillBeRawPtr<SVGPath> create(PassOwnPtr<SVGPathByteStream> pathByteStream)
+ {
+ return adoptRefWillBeNoop(new SVGPath(pathByteStream));
+ }
~SVGPath() override;
const Path& path() const;
const SVGPathByteStream& byteStream() const;
- SVGPathByteStream& mutableByteStream();
// SVGPropertyBase:
PassRefPtrWillBeRawPtr<SVGPath> clone() const;
@@ -72,7 +75,8 @@ private:
explicit SVGPath(PassOwnPtr<SVGPathByteStream>);
SVGPathByteStream& ensureByteStream();
- void byteStreamWillChange();
+ void byteStreamChanged();
+ void setValueAsByteStream(PassOwnPtr<SVGPathByteStream>);
OwnPtr<SVGPathByteStream> m_byteStream;
mutable OwnPtr<Path> m_cachedPath;
« no previous file with comments | « third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698