Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
index f5b33441cc0e0473e4ac3047ac25ea842519754f..2efdc8567c68547b6998a86cdac47713c39a9357 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
@@ -933,8 +933,8 @@ static FloatSize getViewportSize(LocalFrame* frame) |
} |
return frame->isMainFrame() && !host->settings().inertVisualViewport() |
- ? host->visualViewport().visibleRect().size() |
- : view->visibleContentRect(IncludeScrollbars).size(); |
+ ? FloatSize(host->visualViewport().visibleRect().size()) |
+ : FloatSize(view->visibleContentRect(IncludeScrollbars).size()); |
} |
int LocalDOMWindow::innerHeight() const |