diff options
Diffstat (limited to 'third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp index 259d6f3..4ee1f83 100644 --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp @@ -231,12 +231,14 @@ void LayoutSVGInlineText::computeNewScaledFontForStyle(LayoutObject* layoutObjec scaledFont.update(document.styleEngine().fontSelector()); } -LayoutRect LayoutSVGInlineText::clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const +LayoutRect LayoutSVGInlineText::absoluteClippedOverflowRect() const { - // FIXME: The following works because LayoutSVGBlock has forced slow rect mapping of the paintInvalidationState. - // Should let this really work with paintInvalidationState's fast mapping and remove the assert. - ASSERT(!paintInvalidationState || !paintInvalidationState->canMapToAncestor(paintInvalidationContainer)); - return parent()->clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, nullptr); + return parent()->absoluteClippedOverflowRect(); +} + +FloatRect LayoutSVGInlineText::paintInvalidationRectInLocalSVGCoordinates() const +{ + return parent()->paintInvalidationRectInLocalSVGCoordinates(); } PassRefPtr<StringImpl> LayoutSVGInlineText::originalText() const |