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

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

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Whitespace Created 4 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/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 9ca8b0c5e8bce9d61b99c3eac47a54ddb4c05d35..6fd3bd16a767c965307481348e17e6c684cb415e 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -486,7 +486,7 @@ DoublePoint VisualViewport::maximumScrollPositionDouble() const
frameViewSize = FloatSize(flooredIntSize(frameViewSize));
FloatSize viewportSize(m_size);
- viewportSize.expand(0, m_topControlsAdjustment);
+ viewportSize.expand(0, ceilf(m_topControlsAdjustment));
majidvp 2016/04/01 17:09:36 Can you point out where in CC we are ceiling the t
bokan 2016/04/05 17:11:40 https://code.google.com/p/chromium/codesearch#chro
FloatSize maxPosition = frameViewSize - viewportSize;
maxPosition.scale(1 / m_scale);

Powered by Google App Engine
This is Rietveld 408576698