Index: Source/core/rendering/svg/RenderSVGRoot.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp |
index 4c81c671401eec0f949037ead39fe614ae4f33da..b8ba6b62b001a303a82e8a9829cb3b92537bbf0b 100644 |
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp |
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp |
@@ -147,7 +147,7 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalWidth(ShouldComputePreferred sho |
return RenderReplaced::computeReplacedLogicalWidth(shouldComputePreferred); |
if (svg->widthAttributeEstablishesViewport()) |
- return resolveLengthAttributeForSVG(svg->intrinsicWidth(SVGSVGElement::IgnoreCSSProperties), style()->effectiveZoom(), containingBlock()->availableLogicalWidth()); |
+ return resolveLengthAttributeForSVG(svg->intrinsicWidth(SVGSVGElement::IgnoreCSSProperties), style()->effectiveZoom(), containingBlock()->availableLogicalWidth().toFloat()); |
// SVG embedded through object/embed/iframe. |
if (isEmbeddedThroughFrameContainingSVGDocument()) |
@@ -181,7 +181,7 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const |
} else |
RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this)); |
- return resolveLengthAttributeForSVG(height, style()->effectiveZoom(), containingBlock()->availableLogicalHeight(IncludeMarginBorderPadding)); |
+ return resolveLengthAttributeForSVG(height, style()->effectiveZoom(), containingBlock()->availableLogicalHeight(IncludeMarginBorderPadding).toFloat()); |
} |
// SVG embedded through object/embed/iframe. |
@@ -394,7 +394,7 @@ void RenderSVGRoot::updateCachedBoundaries() |
{ |
SVGRenderSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m_objectBoundingBoxValid, m_strokeBoundingBox, m_repaintBoundingBox); |
SVGRenderSupport::intersectRepaintRectWithResources(this, m_repaintBoundingBox); |
- m_repaintBoundingBox.inflate(borderAndPaddingWidth()); |
+ m_repaintBoundingBox.inflate(borderAndPaddingWidth().toFloat()); |
} |
bool RenderSVGRoot::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) |