Index: Source/core/rendering/svg/RenderSVGForeignObject.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGForeignObject.cpp b/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
index 81f0a162b6d96ebbd092654395097d5315669a52..a5c026faf5f984efe84dac2a21d9f02f6128c14f 100644 |
--- a/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
+++ b/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
@@ -115,6 +115,7 @@ void RenderSVGForeignObject::computeLogicalHeight(LayoutUnit, LayoutUnit logical |
void RenderSVGForeignObject::layout() |
{ |
ASSERT(needsLayout()); |
+ ASSERT(!view()->layoutStateCachedOffsetsEnabled()); // RenderSVGRoot disables layoutState for the SVG rendering tree. |
SVGForeignObjectElement* foreign = toSVGForeignObjectElement(node()); |
@@ -155,10 +156,10 @@ void RenderSVGForeignObject::layout() |
} |
void RenderSVGForeignObject::mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, |
- LayoutRect& rect, bool fixed, const PaintInvalidationState* paintInvalidationState) const |
+ LayoutRect& rect, bool fixed) const |
{ |
FloatRect r(rect); |
- SVGRenderSupport::computeFloatRectForRepaint(this, paintInvalidationContainer, r, fixed, paintInvalidationState); |
+ SVGRenderSupport::computeFloatRectForRepaint(this, paintInvalidationContainer, r, fixed); |
rect = enclosingLayoutRect(r); |
} |