OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #if ENABLE(SVG) | 23 #if ENABLE(SVG) |
24 #include "SVGTextContentElement.h" | 24 #include "SVGTextContentElement.h" |
25 | 25 |
26 #include "CSSPropertyNames.h" | 26 #include "CSSPropertyNames.h" |
27 #include "CSSValueKeywords.h" | 27 #include "CSSValueKeywords.h" |
28 #include "Frame.h" | 28 #include "Frame.h" |
29 #include "FrameSelection.h" | 29 #include "FrameSelection.h" |
30 #include "RenderObject.h" | 30 #include "RenderObject.h" |
31 #include "RenderSVGResource.h" | 31 #include "RenderSVGResource.h" |
| 32 #include "RenderSVGText.h" |
32 #include "SVGDocumentExtensions.h" | 33 #include "SVGDocumentExtensions.h" |
33 #include "SVGElementInstance.h" | 34 #include "SVGElementInstance.h" |
34 #include "SVGNames.h" | 35 #include "SVGNames.h" |
35 #include "SVGTextQuery.h" | 36 #include "SVGTextQuery.h" |
36 #include "XMLNames.h" | 37 #include "XMLNames.h" |
37 | 38 |
38 namespace WebCore { | 39 namespace WebCore { |
39 | 40 |
40 // Animated property definitions | 41 // Animated property definitions |
41 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L
engthAdjust, lengthAdjust, SVGTextContentElement::SVGLengthAdjustType) | 42 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L
engthAdjust, lengthAdjust, SVGTextContentElement::SVGLengthAdjustType) |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 #if ENABLE(SVG_FONTS) | 327 #if ENABLE(SVG_FONTS) |
327 && !node->hasTagName(SVGNames::altGlyphTag) | 328 && !node->hasTagName(SVGNames::altGlyphTag) |
328 #endif | 329 #endif |
329 && !node->hasTagName(SVGNames::trefTag) | 330 && !node->hasTagName(SVGNames::trefTag) |
330 && !node->hasTagName(SVGNames::textPathTag)) | 331 && !node->hasTagName(SVGNames::textPathTag)) |
331 return 0; | 332 return 0; |
332 | 333 |
333 return static_cast<SVGTextContentElement*>(node); | 334 return static_cast<SVGTextContentElement*>(node); |
334 } | 335 } |
335 | 336 |
| 337 void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeCh
ange, Node* afterChange, int childCountDelta) |
| 338 { |
| 339 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange
, childCountDelta); |
| 340 |
| 341 if (changedByParser || !renderer()) |
| 342 return; |
| 343 |
| 344 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor
(renderer())) |
| 345 textRenderer->setNeedsPositioningValuesUpdate(); |
| 346 } |
| 347 |
336 } | 348 } |
337 | 349 |
338 #endif // ENABLE(SVG) | 350 #endif // ENABLE(SVG) |
OLD | NEW |