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

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

Issue 1545713003: Add StylePath and use it to store 'd' in ComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015->2016; Remove unnecessary explicit. 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/svg/SVGPathByteStream.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStream.h b/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
index e7bec8bfee91f42cbcbf55df61eaf24b33a7eaa9..0442474e3e47782f24f780c39bdf045689845661 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
@@ -21,7 +21,8 @@
#define SVGPathByteStream_h
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
namespace blink {
@@ -32,17 +33,17 @@ union ByteType {
unsigned char bytes[sizeof(DataType)];
};
-class SVGPathByteStream {
+class SVGPathByteStream : public RefCounted<SVGPathByteStream> {
USING_FAST_MALLOC(SVGPathByteStream);
public:
- static PassOwnPtr<SVGPathByteStream> create()
+ static PassRefPtr<SVGPathByteStream> create()
{
- return adoptPtr(new SVGPathByteStream);
+ return adoptRef(new SVGPathByteStream);
}
- PassOwnPtr<SVGPathByteStream> copy() const
+ PassRefPtr<SVGPathByteStream> clone() const
{
- return adoptPtr(new SVGPathByteStream(m_data));
+ return adoptRef(new SVGPathByteStream(m_data));
}
typedef Vector<unsigned char> Data;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698