Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: Source/WebCore/rendering/svg/RenderSVGInline.cpp

Issue 10443073: Merge 117225 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGInline.h ('k') | Source/WebCore/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/svg/RenderSVGInline.cpp
===================================================================
--- Source/WebCore/rendering/svg/RenderSVGInline.cpp (revision 118874)
+++ Source/WebCore/rendering/svg/RenderSVGInline.cpp (working copy)
@@ -124,9 +124,24 @@
{
RenderInline::addChild(child, beforeChild);
if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor(this))
- textRenderer->layoutAttributesChanged(child);
+ textRenderer->subtreeChildWasAdded(child);
}
+void RenderSVGInline::removeChild(RenderObject* child)
+{
+ RenderSVGText* textRenderer = child->isSVGInlineText() ? RenderSVGText::locateRenderSVGTextAncestor(this) : 0;
+ if (!textRenderer) {
+ RenderInline::removeChild(child);
+ return;
+ }
+
+ RenderSVGInlineText* text = toRenderSVGInlineText(child);
+ Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
+ textRenderer->subtreeChildWillBeRemoved(text, affectedAttributes);
+ RenderInline::removeChild(child);
+ textRenderer->subtreeChildWasRemoved(affectedAttributes);
}
+}
+
#endif // ENABLE(SVG)
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGInline.h ('k') | Source/WebCore/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698