#include "core/dom/ContainerNode.h"
#include "core/dom/Node.h"
+#include "core/frame/FrameView.h"
#include "core/page/EventHandler.h"
#include "core/rendering/HitTestResult.h"
-#include "platform/scroll/ScrollView.h"
namespace blink {
m_anchorInNodeCoords.scale(1.f / m_anchorNodeBounds.width(), 1.f / m_anchorNodeBounds.height());
}
-void ViewportAnchor::computeOrigins(const ScrollView& scrollView, const FloatSize& innerSize,
+void ViewportAnchor::computeOrigins(const FrameView& frameView, const FloatSize& innerSize,
IntPoint& mainFrameOffset, FloatPoint& pinchViewportOffset) const
{
- IntSize outerSize = scrollView.visibleContentRect().size();
+ IntSize outerSize = frameView.visibleContentRect().size();
// Compute the viewport origins in CSS pixels relative to the document.
FloatSize absPinchViewportOffset = m_normalizedPinchViewportOffset;
moveToEncloseRect(outerRect, innerRect);
- outerRect.setLocation(scrollView.adjustScrollPositionWithinRange(outerRect.location()));
+ outerRect.setLocation(frameView.adjustScrollPositionWithinRange(outerRect.location()));
moveIntoRect(innerRect, outerRect);