| Index: Source/web/DevToolsEmulator.cpp
|
| diff --git a/Source/web/DevToolsEmulator.cpp b/Source/web/DevToolsEmulator.cpp
|
| index 6c762117f1ed76d1d5a931e25044e52df41d62dc..875932b17d6c6fe814a68490e8e46a2495c89bf6 100644
|
| --- a/Source/web/DevToolsEmulator.cpp
|
| +++ b/Source/web/DevToolsEmulator.cpp
|
| @@ -264,7 +264,7 @@ bool DevToolsEmulator::handleInputEvent(const WebInputEvent& inputEvent)
|
| IntPoint anchorCss(*m_lastPinchAnchorDip.get());
|
| anchorCss.scale(1.f / newPageScaleFactor, 1.f / newPageScaleFactor);
|
| m_webViewImpl->setPageScaleFactor(newPageScaleFactor);
|
| - m_webViewImpl->setMainFrameScrollOffset(*m_lastPinchAnchorCss.get() - toIntSize(anchorCss));
|
| + m_webViewImpl->mainFrame()->setScrollOffset(toIntSize(*m_lastPinchAnchorCss.get() - toIntSize(anchorCss)));
|
| }
|
| if (gestureEvent.type() == PlatformEvent::GesturePinchEnd) {
|
| m_lastPinchAnchorCss.clear();
|
|
|