| Index: Source/core/frame/PinchViewport.h
|
| diff --git a/Source/core/frame/PinchViewport.h b/Source/core/frame/PinchViewport.h
|
| index ddba860bfdd38b0218c35784a47cc44480c64d6f..8a2f6de79d81a3a988e677a2082c19cd2f41e010 100644
|
| --- a/Source/core/frame/PinchViewport.h
|
| +++ b/Source/core/frame/PinchViewport.h
|
| @@ -84,7 +84,7 @@ public:
|
| return m_innerViewportScrollLayer.get();
|
| }
|
|
|
| - // Sets the location of the inner viewport relative to the outer viewport. The
|
| + // Sets the location of the pinch viewport relative to the outer viewport. The
|
| // coordinates are in partial CSS pixels.
|
| void setLocation(const FloatPoint&);
|
| // FIXME: This should be called moveBy
|
| @@ -92,6 +92,12 @@ public:
|
| void move(const FloatSize&);
|
| FloatPoint location() const { return m_offset; }
|
|
|
| + // Sets the location of the pinch viewport relative to the document. This
|
| + // will attempt to scroll the root FrameView such that the pinch viewport
|
| + // is at the given location. It will then scroll the pinch viewport if
|
| + // scrolling only the root FrameView couldn't reach the location.
|
| + void setLocationInDocument(const DoublePoint&);
|
| +
|
| // Sets the size of the inner viewport when unscaled in CSS pixels.
|
| void setSize(const IntSize&);
|
| IntSize size() const { return m_size; }
|
|
|