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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 SVGElement::InvalidationGuard invalidationGuard(this); | 112 SVGElement::InvalidationGuard invalidationGuard(this); |
113 | 113 |
114 if (attrName == SVGNames::refXAttr | 114 if (attrName == SVGNames::refXAttr |
115 || attrName == SVGNames::refYAttr | 115 || attrName == SVGNames::refYAttr |
116 || attrName == SVGNames::markerWidthAttr | 116 || attrName == SVGNames::markerWidthAttr |
117 || attrName == SVGNames::markerHeightAttr) | 117 || attrName == SVGNames::markerHeightAttr) |
118 updateRelativeLengthsInformation(); | 118 updateRelativeLengthsInformation(); |
119 | 119 |
120 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re
nderer()); | 120 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la
youtObject()); |
121 if (renderer) | 121 if (renderer) |
122 renderer->invalidateCacheAndMarkForLayout(); | 122 renderer->invalidateCacheAndMarkForLayout(); |
123 } | 123 } |
124 | 124 |
125 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) | 125 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) |
126 { | 126 { |
127 SVGElement::childrenChanged(change); | 127 SVGElement::childrenChanged(change); |
128 | 128 |
129 if (change.byParser) | 129 if (change.byParser) |
130 return; | 130 return; |
131 | 131 |
132 if (LayoutObject* object = renderer()) | 132 if (LayoutObject* object = layoutObject()) |
133 object->setNeedsLayoutAndFullPaintInvalidation(); | 133 object->setNeedsLayoutAndFullPaintInvalidation(); |
134 } | 134 } |
135 | 135 |
136 void SVGMarkerElement::setOrientToAuto() | 136 void SVGMarkerElement::setOrientToAuto() |
137 { | 137 { |
138 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); | 138 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); |
139 invalidateSVGAttributes(); | 139 invalidateSVGAttributes(); |
140 svgAttributeChanged(SVGNames::orientAttr); | 140 svgAttributeChanged(SVGNames::orientAttr); |
141 } | 141 } |
142 | 142 |
(...skipping 13 matching lines...) Expand all Loading... |
156 | 156 |
157 bool SVGMarkerElement::selfHasRelativeLengths() const | 157 bool SVGMarkerElement::selfHasRelativeLengths() const |
158 { | 158 { |
159 return m_refX->currentValue()->isRelative() | 159 return m_refX->currentValue()->isRelative() |
160 || m_refY->currentValue()->isRelative() | 160 || m_refY->currentValue()->isRelative() |
161 || m_markerWidth->currentValue()->isRelative() | 161 || m_markerWidth->currentValue()->isRelative() |
162 || m_markerHeight->currentValue()->isRelative(); | 162 || m_markerHeight->currentValue()->isRelative(); |
163 } | 163 } |
164 | 164 |
165 } // namespace blink | 165 } // namespace blink |
OLD | NEW |