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

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

Issue 1646543004: Refactor away SVGPathSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use namespace 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/SVGPathByteStreamSource.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
index cf61d5334eec5973a39456176808cf86be723f39..10fe616ac8cbf9ae8f7a87a9e38591e59904981c 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
@@ -21,12 +21,14 @@
#define SVGPathByteStreamSource_h
#include "core/svg/SVGPathByteStream.h"
-#include "core/svg/SVGPathSource.h"
+#include "core/svg/SVGPathData.h"
#include "platform/geometry/FloatPoint.h"
namespace blink {
-class SVGPathByteStreamSource final : public SVGPathSource {
+class SVGPathByteStreamSource {
+ WTF_MAKE_NONCOPYABLE(SVGPathByteStreamSource);
+ STACK_ALLOCATED();
public:
explicit SVGPathByteStreamSource(const SVGPathByteStream& stream)
: m_streamCurrent(stream.begin())
@@ -34,9 +36,8 @@ public:
{
}
- bool hasMoreData() const override;
- SVGPathSegType peekSegmentType() override;
- PathSegmentData parseSegment() override;
+ bool hasMoreData() const { return m_streamCurrent < m_streamEnd; }
+ PathSegmentData parseSegment();
private:
#if COMPILER(MSVC)

Powered by Google App Engine
This is Rietveld 408576698