| 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 972c3bd1f4798080d8e9668818e0a3fc4dbaf597..e522078ebc506c952ff4fa969c996c5203248392 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -545,7 +545,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) {
|
| @@ -557,7 +557,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);
|
|
|