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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 setOrientTypeBaseValue(SVGMarkerOrientAngle); | 205 setOrientTypeBaseValue(SVGMarkerOrientAngle); |
206 setOrientAngleBaseValue(angle); | 206 setOrientAngleBaseValue(angle); |
207 | 207 |
208 // Mark orientAttr dirty - the next XML DOM access of that attribute kicks i
n synchronization. | 208 // Mark orientAttr dirty - the next XML DOM access of that attribute kicks i
n synchronization. |
209 m_orientAngle.shouldSynchronize = true; | 209 m_orientAngle.shouldSynchronize = true; |
210 m_orientType.shouldSynchronize = true; | 210 m_orientType.shouldSynchronize = true; |
211 invalidateSVGAttributes(); | 211 invalidateSVGAttributes(); |
212 svgAttributeChanged(orientAnglePropertyInfo()->attributeName); | 212 svgAttributeChanged(orientAnglePropertyInfo()->attributeName); |
213 } | 213 } |
214 | 214 |
215 RenderObject* SVGMarkerElement::createRenderer(RenderArena* arena, RenderStyle*) | 215 RenderObject* SVGMarkerElement::createRenderer(RenderStyle*) |
216 { | 216 { |
217 return new (arena) RenderSVGResourceMarker(this); | 217 return new RenderSVGResourceMarker(this); |
218 } | 218 } |
219 | 219 |
220 bool SVGMarkerElement::selfHasRelativeLengths() const | 220 bool SVGMarkerElement::selfHasRelativeLengths() const |
221 { | 221 { |
222 return refX().isRelative() | 222 return refX().isRelative() |
223 || refY().isRelative() | 223 || refY().isRelative() |
224 || markerWidth().isRelative() | 224 || markerWidth().isRelative() |
225 || markerHeight().isRelative(); | 225 || markerHeight().isRelative(); |
226 } | 226 } |
227 | 227 |
(...skipping 20 matching lines...) Expand all Loading... |
248 (ownerType, orientTypePropertyInfo(), ownerType->m_orientType.value); | 248 (ownerType, orientTypePropertyInfo(), ownerType->m_orientType.value); |
249 } | 249 } |
250 | 250 |
251 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > SVGMarke
rElement::orientTypeAnimated() | 251 PassRefPtr<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOrientType> > SVGMarke
rElement::orientTypeAnimated() |
252 { | 252 { |
253 m_orientType.shouldSynchronize = true; | 253 m_orientType.shouldSynchronize = true; |
254 return static_pointer_cast<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOr
ientType> >(lookupOrCreateOrientTypeWrapper(this)); | 254 return static_pointer_cast<SVGAnimatedEnumerationPropertyTearOff<SVGMarkerOr
ientType> >(lookupOrCreateOrientTypeWrapper(this)); |
255 } | 255 } |
256 | 256 |
257 } | 257 } |
OLD | NEW |