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

Unified Diff: Source/core/frame/PinchViewport.cpp

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again Created 5 years, 10 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
« no previous file with comments | « Source/core/frame/PinchViewport.h ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PinchViewport.cpp
diff --git a/Source/core/frame/PinchViewport.cpp b/Source/core/frame/PinchViewport.cpp
index 3631aa49fadf8058e9c26022e5395348380c6f3c..aed4a71fcadb2b620e579393953fc28214e42310 100644
--- a/Source/core/frame/PinchViewport.cpp
+++ b/Source/core/frame/PinchViewport.cpp
@@ -115,12 +115,17 @@ void PinchViewport::mainFrameDidChangeSize()
clampToBoundaries();
}
-FloatRect PinchViewport::visibleRect() const
+FloatSize PinchViewport::visibleSize() const
{
FloatSize scaledSize(m_size);
scaledSize.expand(0, m_topControlsAdjustment);
scaledSize.scale(1 / m_scale);
- return FloatRect(m_offset, scaledSize);
+ return scaledSize;
+}
+
+FloatRect PinchViewport::visibleRect() const
+{
+ return FloatRect(location(), visibleSize());
}
FloatRect PinchViewport::visibleRectInDocument() const
« no previous file with comments | « Source/core/frame/PinchViewport.h ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698