| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp
|
| index f510bdbce54663c10d58f88175f08cfcddf1db72..91925f5a1730bcf64db77e00301dbc0670eedeeb 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp
|
| @@ -138,15 +138,9 @@ void LayoutSVGInline::removeChild(LayoutObject* child)
|
| {
|
| SVGResourcesCache::clientWillBeRemovedFromTree(child);
|
|
|
| - LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAncestor(this);
|
| - if (!textLayoutObject) {
|
| - LayoutInline::removeChild(child);
|
| - return;
|
| - }
|
| - Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
|
| - textLayoutObject->subtreeChildWillBeRemoved(child, affectedAttributes);
|
| + if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAncestor(this))
|
| + textLayoutObject->subtreeChildWillBeRemoved(child);
|
| LayoutInline::removeChild(child);
|
| - textLayoutObject->subtreeChildWasRemoved(affectedAttributes);
|
| }
|
|
|
| void LayoutSVGInline::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState)
|
|
|