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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 | 310 |
311 void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeCh
ange, Node* afterChange, int childCountDelta) | 311 void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeCh
ange, Node* afterChange, int childCountDelta) |
312 { | 312 { |
313 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange
, childCountDelta); | 313 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange
, childCountDelta); |
314 | 314 |
315 if (changedByParser || !renderer()) | 315 if (changedByParser || !renderer()) |
316 return; | 316 return; |
317 | 317 |
318 // Invalidate the TextPosition cache in SVGTextLayoutAttributesBuilder as it
may now point | 318 // Invalidate the TextPosition cache in SVGTextLayoutAttributesBuilder as it
may now point |
319 // to no-longer existing SVGTextPositioningElements and thus needs to be reb
uild. | 319 // to no-longer existing SVGTextPositioningElements and thus needs to be reb
uilt. |
320 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor
(renderer())) | 320 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor
(renderer())) |
321 textRenderer->textDOMChanged(); | 321 textRenderer->textDOMChanged(); |
322 } | 322 } |
323 | 323 |
324 } | 324 } |
325 | 325 |
326 #endif // ENABLE(SVG) | 326 #endif // ENABLE(SVG) |
OLD | NEW |