Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
index b84eba735d75a2a6988cb780a05e42b83bef8dd4..c4b1ab4b43979500ab67df76d3b70c6c1ef047f3 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
@@ -962,16 +962,9 @@ bool LayoutView::backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const |
return m_frameView->hasOpaqueBackground(); |
} |
-double LayoutView::layoutViewportWidth() const |
+FloatSize LayoutView::viewportSizeForViewportUnits() const |
{ |
- float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
- return viewWidth(IncludeScrollbars) / scale; |
-} |
- |
-double LayoutView::layoutViewportHeight() const |
-{ |
- float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
- return viewHeight(IncludeScrollbars) / scale; |
+ return frameView()->viewportSizeForViewportUnits(); |
} |
void LayoutView::willBeDestroyed() |