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

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: Template fail. 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..040d124bc985e2bd243344da4accf1e4d99d6404 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;
@@ -73,6 +76,7 @@ private:
SVGPathByteStream& ensureByteStream();
void byteStreamWillChange();
+ void setValueAsByteStream(PassOwnPtr<SVGPathByteStream>);
OwnPtr<SVGPathByteStream> m_byteStream;
mutable OwnPtr<Path> m_cachedPath;

Powered by Google App Engine
This is Rietveld 408576698