| Index: Source/core/frame/PinchViewport.cpp
|
| diff --git a/Source/core/frame/PinchViewport.cpp b/Source/core/frame/PinchViewport.cpp
|
| index 90591a35365d3c2ff29668398f9f612cfc752db3..b2be9e1e883713ccbcbf3942aa96760bc74fd598 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
|
|
|