Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp |
index 584e9dce0b2b4c5123b969277ddd8e60ec3880d1..477024df8d54a8f15ac1581c851c023f1566d995 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp |
@@ -396,17 +396,9 @@ void LayoutSVGText::removeChild(LayoutObject* child) |
void LayoutSVGText::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState) |
{ |
- ASSERT(!needsLayout()); |
- |
- if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
- return; |
- |
- PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *this); |
- PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidationState); |
- clearPaintInvalidationFlags(newPaintInvalidationState); |
- |
- newPaintInvalidationState.updateForChildren(reason); |
- invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); |
+ // TODO(wangxianzhu): Verify if the inherited LayoutBoxModelObject::invalidateTreeIfNeeded() |
+ // is applicable here. If yes, remove this overriding method. |
+ LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); |
} |
} // namespace blink |