| Index: sky/engine/core/frame/PinchViewport.cpp
|
| diff --git a/sky/engine/core/frame/PinchViewport.cpp b/sky/engine/core/frame/PinchViewport.cpp
|
| index 9afe13a90319534ca2493dcb07fe6fed1ae5011b..bbf695c598b329c84da920cb53b87fd35fa1c0e6 100644
|
| --- a/sky/engine/core/frame/PinchViewport.cpp
|
| +++ b/sky/engine/core/frame/PinchViewport.cpp
|
| @@ -130,22 +130,7 @@ FloatRect PinchViewport::visibleRectInDocument() const
|
|
|
| void PinchViewport::scrollIntoView(const FloatRect& rect)
|
| {
|
| - if (!mainFrame() || !mainFrame()->view())
|
| - return;
|
| -
|
| - FrameView* view = mainFrame()->view();
|
| -
|
| - float centeringOffsetX = (visibleRect().width() - rect.width()) / 2;
|
| - float centeringOffsetY = (visibleRect().height() - rect.height()) / 2;
|
| -
|
| - FloatPoint targetOffset(
|
| - rect.x() - centeringOffsetX - visibleRect().x(),
|
| - rect.y() - centeringOffsetY - visibleRect().y());
|
| -
|
| - view->setScrollPosition(flooredIntPoint(targetOffset));
|
| -
|
| - FloatPoint remainder = FloatPoint(targetOffset - view->scrollPosition());
|
| - move(remainder);
|
| + // FIXME(sky): Delete this whole file.
|
| }
|
|
|
| void PinchViewport::setLocation(const FloatPoint& newLocation)
|
|
|