Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 200d6f7d7fab6911e31ca84f5511a07c6e02197d..ba0bcd4548e397fff549bff9e34a3f969233fed5 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -5162,7 +5162,7 @@ void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads |
if (!view()) |
return; |
- LayoutRect visibleContentRect = view()->visualViewportRect(); |
+ LayoutRect visibleContentRect(view()->visualViewportRect()); |
for (size_t i = 0; i < quads.size(); ++i) { |
quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); |
adjustFloatQuadForAbsoluteZoom(quads[i], renderer); |
@@ -5174,7 +5174,7 @@ void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, LayoutOb |
if (!view()) |
return; |
- LayoutRect visibleContentRect = view()->visualViewportRect(); |
+ LayoutRect visibleContentRect(view()->visualViewportRect()); |
rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); |
adjustFloatRectForAbsoluteZoom(rect, renderer); |
} |