Index: Source/WebCore/svg/SVGTextContentElement.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGTextContentElement.cpp (revision 90860) |
+++ Source/WebCore/svg/SVGTextContentElement.cpp (working copy) |
@@ -29,6 +29,7 @@ |
#include "FrameSelection.h" |
#include "RenderObject.h" |
#include "RenderSVGResource.h" |
+#include "RenderSVGText.h" |
#include "SVGDocumentExtensions.h" |
#include "SVGElementInstance.h" |
#include "SVGNames.h" |
@@ -333,6 +334,17 @@ |
return static_cast<SVGTextContentElement*>(node); |
} |
+void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
+{ |
+ SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); |
+ |
+ if (changedByParser || !renderer()) |
+ return; |
+ |
+ if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor(renderer())) |
+ textRenderer->setNeedsPositioningValuesUpdate(); |
} |
+} |
+ |
#endif // ENABLE(SVG) |