OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 || attrName == SVGNames::refYAttr | 124 || attrName == SVGNames::refYAttr |
125 || attrName == SVGNames::markerWidthAttr | 125 || attrName == SVGNames::markerWidthAttr |
126 || attrName == SVGNames::markerHeightAttr) | 126 || attrName == SVGNames::markerHeightAttr) |
127 updateRelativeLengthsInformation(); | 127 updateRelativeLengthsInformation(); |
128 | 128 |
129 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 129 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
130 if (renderer) | 130 if (renderer) |
131 renderer->invalidateCacheAndMarkForLayout(); | 131 renderer->invalidateCacheAndMarkForLayout(); |
132 } | 132 } |
133 | 133 |
134 void SVGMarkerElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 134 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) |
135 { | 135 { |
136 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 136 SVGElement::childrenChanged(change); |
137 | 137 |
138 if (changedByParser) | 138 if (change.byParser) |
139 return; | 139 return; |
140 | 140 |
141 if (RenderObject* object = renderer()) | 141 if (RenderObject* object = renderer()) |
142 object->setNeedsLayoutAndFullPaintInvalidation(); | 142 object->setNeedsLayoutAndFullPaintInvalidation(); |
143 } | 143 } |
144 | 144 |
145 void SVGMarkerElement::setOrientToAuto() | 145 void SVGMarkerElement::setOrientToAuto() |
146 { | 146 { |
147 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); | 147 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); |
148 invalidateSVGAttributes(); | 148 invalidateSVGAttributes(); |
(...skipping 16 matching lines...) Expand all Loading... |
165 | 165 |
166 bool SVGMarkerElement::selfHasRelativeLengths() const | 166 bool SVGMarkerElement::selfHasRelativeLengths() const |
167 { | 167 { |
168 return m_refX->currentValue()->isRelative() | 168 return m_refX->currentValue()->isRelative() |
169 || m_refY->currentValue()->isRelative() | 169 || m_refY->currentValue()->isRelative() |
170 || m_markerWidth->currentValue()->isRelative() | 170 || m_markerWidth->currentValue()->isRelative() |
171 || m_markerHeight->currentValue()->isRelative(); | 171 || m_markerHeight->currentValue()->isRelative(); |
172 } | 172 } |
173 | 173 |
174 } | 174 } |
OLD | NEW |