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 88186a58e368e7f72fe904e233c96f6eefafdf0e..6a96778b49ef000ac9f4c4dfac9e611b9f519cdf 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
@@ -962,9 +962,16 @@ |
return m_frameView->hasOpaqueBackground(); |
} |
-FloatSize LayoutView::viewportSizeForViewportUnits() const |
-{ |
- return frameView() ? frameView()->viewportSizeForViewportUnits() : FloatSize(); |
+double LayoutView::layoutViewportWidth() 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; |
} |
void LayoutView::willBeDestroyed() |