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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/svg/SVGPathSegLinetoHorizontalRel.h" | 43 #include "core/svg/SVGPathSegLinetoHorizontalRel.h" |
44 #include "core/svg/SVGPathSegLinetoRel.h" | 44 #include "core/svg/SVGPathSegLinetoRel.h" |
45 #include "core/svg/SVGPathSegLinetoVerticalAbs.h" | 45 #include "core/svg/SVGPathSegLinetoVerticalAbs.h" |
46 #include "core/svg/SVGPathSegLinetoVerticalRel.h" | 46 #include "core/svg/SVGPathSegLinetoVerticalRel.h" |
47 #include "core/svg/SVGPathSegMovetoAbs.h" | 47 #include "core/svg/SVGPathSegMovetoAbs.h" |
48 #include "core/svg/SVGPathSegMovetoRel.h" | 48 #include "core/svg/SVGPathSegMovetoRel.h" |
49 | 49 |
50 namespace blink { | 50 namespace blink { |
51 | 51 |
52 SVGPathSegListBuilder::SVGPathSegListBuilder() | 52 SVGPathSegListBuilder::SVGPathSegListBuilder() |
53 : m_pathElement(0) | 53 : m_pathElement(nullptr) |
54 , m_pathSegList(nullptr) | 54 , m_pathSegList(nullptr) |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
| 58 void SVGPathSegListBuilder::trace(Visitor* visitor) |
| 59 { |
| 60 visitor->trace(m_pathElement); |
| 61 visitor->trace(m_pathSegList); |
| 62 SVGPathConsumer::trace(visitor); |
| 63 } |
| 64 |
58 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, bool, PathCoor
dinateMode mode) | 65 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, bool, PathCoor
dinateMode mode) |
59 { | 66 { |
60 ASSERT(m_pathElement); | 67 ASSERT(m_pathElement); |
61 ASSERT(m_pathSegList); | 68 ASSERT(m_pathSegList); |
62 if (mode == AbsoluteCoordinates) | 69 if (mode == AbsoluteCoordinates) |
63 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m
_pathElement, targetPoint.x(), targetPoint.y())); | 70 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m
_pathElement, targetPoint.x(), targetPoint.y())); |
64 else | 71 else |
65 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoRel::create(m
_pathElement, targetPoint.x(), targetPoint.y())); | 72 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoRel::create(m
_pathElement, targetPoint.x(), targetPoint.y())); |
66 } | 73 } |
67 | 74 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 153 } |
147 | 154 |
148 void SVGPathSegListBuilder::closePath() | 155 void SVGPathSegListBuilder::closePath() |
149 { | 156 { |
150 ASSERT(m_pathElement); | 157 ASSERT(m_pathElement); |
151 ASSERT(m_pathSegList); | 158 ASSERT(m_pathSegList); |
152 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat
hElement)); | 159 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat
hElement)); |
153 } | 160 } |
154 | 161 |
155 } | 162 } |
OLD | NEW |