| 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
|
|
|