| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2002, 2003 The Karbon Developers | 2 * Copyright (C) 2002, 2003 The Karbon Developers |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #define SVGPathBuilder_h | 25 #define SVGPathBuilder_h |
| 26 | 26 |
| 27 #include "core/svg/SVGPathConsumer.h" | 27 #include "core/svg/SVGPathConsumer.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class Path; | 31 class Path; |
| 32 | 32 |
| 33 class SVGPathBuilder final : public SVGPathConsumer { | 33 class SVGPathBuilder final : public SVGPathConsumer { |
| 34 public: | 34 public: |
| 35 SVGPathBuilder(Path& path) : m_path(path), m_closed(true) { } | 35 SVGPathBuilder(Path& path) : m_path(path) { } |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void emitSegment(const PathSegmentData&) override; | 38 void emitSegment(const PathSegmentData&) override; |
| 39 | 39 |
| 40 Path& m_path; | 40 Path& m_path; |
| 41 bool m_closed; | |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 } // namespace blink | 43 } // namespace blink |
| 45 | 44 |
| 46 #endif // SVGPathBuilder_h | 45 #endif // SVGPathBuilder_h |
| OLD | NEW |