| 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 7329a0a68faa68457bc1a32887e60ac6a888bd86..65b80677087df051fdbea24cfdaa560cdbee2220 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -565,7 +565,7 @@ DoublePoint VisualViewport::maximumScrollPositionDouble() const
|
| if (!mainFrame())
|
| return IntPoint();
|
|
|
| - // FIXME: We probably shouldn't be storing the bounds in a float. crbug.com/422331.
|
| + // TODO(bokan): We probably shouldn't be storing the bounds in a float. crbug.com/470718.
|
| FloatSize frameViewSize(contentsSize());
|
|
|
| if (m_topControlsAdjustment) {
|
| @@ -577,7 +577,7 @@ DoublePoint VisualViewport::maximumScrollPositionDouble() const
|
| frameViewSize = FloatSize(flooredIntSize(frameViewSize));
|
|
|
| FloatSize viewportSize(m_size);
|
| - viewportSize.expand(0, m_topControlsAdjustment);
|
| + viewportSize.expand(0, ceilf(m_topControlsAdjustment));
|
|
|
| FloatSize maxPosition = frameViewSize - viewportSize;
|
| maxPosition.scale(1 / m_scale);
|
|
|