| Index: third_party/WebKit/Source/core/svg/SVGPathQuery.h
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.h b/third_party/WebKit/Source/core/svg/SVGPathQuery.h
|
| similarity index 67%
|
| copy from third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.h
|
| copy to third_party/WebKit/Source/core/svg/SVGPathQuery.h
|
| index 94cb937366856877711549988918200f68b19bb1..93295f16780409147830d3e9e7c39b0b141f7885 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.h
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPathQuery.h
|
| @@ -1,4 +1,5 @@
|
| /*
|
| + * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
|
| * Copyright (C) Research In Motion Limited 2010. All rights reserved.
|
| *
|
| * This library is free software; you can redistribute it and/or
|
| @@ -17,28 +18,26 @@
|
| * Boston, MA 02110-1301, USA.
|
| */
|
|
|
| -#ifndef SVGPathByteStreamBuilder_h
|
| -#define SVGPathByteStreamBuilder_h
|
| -
|
| -#include "core/svg/SVGPathConsumer.h"
|
| +#ifndef SVGPathQuery_h
|
| +#define SVGPathQuery_h
|
|
|
| namespace blink {
|
|
|
| +class FloatPoint;
|
| class SVGPathByteStream;
|
|
|
| -class SVGPathByteStreamBuilder final : public SVGPathConsumer {
|
| +class SVGPathQuery {
|
| public:
|
| - SVGPathByteStreamBuilder(SVGPathByteStream&);
|
| -
|
| -private:
|
| - void incrementPathSegmentCount() override { }
|
| - bool continueConsuming() override { return true; }
|
| + explicit SVGPathQuery(const SVGPathByteStream&);
|
|
|
| - void emitSegment(const PathSegmentData&) override;
|
| + float getTotalLength() const;
|
| + FloatPoint getPointAtLength(float length) const;
|
| + unsigned getPathSegIndexAtLength(float length) const;
|
|
|
| - SVGPathByteStream& m_byteStream;
|
| +private:
|
| + const SVGPathByteStream& m_pathByteStream;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // SVGPathByteStreamBuilder_h
|
| +#endif // SVGPathQuery_h
|
|
|