Index: Source/core/rendering/RenderView.cpp |
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp |
index 68db6300b10aefcaf2e363854282cc26ef58b149..d7d3b7b7eec0e004c114ec3893663289d67c91f8 100644 |
--- a/Source/core/rendering/RenderView.cpp |
+++ b/Source/core/rendering/RenderView.cpp |
@@ -840,6 +840,13 @@ int RenderView::viewLogicalHeight() const |
return style()->isHorizontalWritingMode() ? viewHeight(ExcludeScrollbars) : viewWidth(ExcludeScrollbars); |
} |
+LayoutUnit RenderView::viewLogicalHeightForPercentages() const |
+{ |
+ if (shouldUsePrintingLayout()) |
+ return pageLogicalHeight(); |
+ return viewLogicalHeight(); |
+} |
+ |
float RenderView::zoomFactor() const |
{ |
return m_frameView->frame().pageZoomFactor(); |