Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index f12e57867810d217ab1d1453594fd8c6fa8c2af4..6866b423ba68e59e1a49ea49b8b986723700d4ff 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -5107,7 +5107,7 @@ void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads |
LayoutRect visibleContentRect = view()->visibleContentRect(); |
for (size_t i = 0; i < quads.size(); ++i) { |
- quads[i].move(-FloatSize(visibleContentRect.x(), visibleContentRect.y())); |
+ quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); |
adjustFloatQuadForAbsoluteZoom(quads[i], renderer); |
} |
} |
@@ -5118,7 +5118,7 @@ void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, RenderOb |
return; |
LayoutRect visibleContentRect = view()->visibleContentRect(); |
- rect.move(-FloatSize(visibleContentRect.x(), visibleContentRect.y())); |
+ rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); |
adjustFloatRectForAbsoluteZoom(rect, renderer); |
} |