Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2738173002: Initial containing block for print not affected by page zoom. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 85977cb686099cde2a01bc2b4e1861dcc3e901cb..9b31b33840c6f23361099ae58ccf67f5abadf61f 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1405,7 +1405,9 @@ IntRect FrameView::computeVisibleArea() {
}
FloatSize FrameView::viewportSizeForViewportUnits() const {
- float zoom = frame().pageZoomFactor();
+ float zoom = 1;
+ if (!m_frame->document() || !m_frame->document()->printing())
+ zoom = frame().pageZoomFactor();
LayoutViewItem layoutViewItem = this->layoutViewItem();
if (layoutViewItem.isNull())

Powered by Google App Engine
This is Rietveld 408576698