diff --git a/engine/core/rendering/RenderLayer.cpp b/engine/core/rendering/RenderLayer.cpp index 7ff87f2d4095716142753a5a4a348f8db3108143..84d000d9b4ecd14c203cadeb203228350a34a5bd 100644 --- a/engine/core/rendering/RenderLayer.cpp +++ b/engine/core/rendering/RenderLayer.cpp @@ -797,11 +797,6 @@ static inline LayoutRect frameVisibleRect(RenderObject* renderer) return frameView->visibleContentRect(); } -bool RenderLayer::hitTest(const HitTestRequest& request, HitTestResult& result) -{ - return hitTest(request, result.hitTestLocation(), result); -} - bool RenderLayer::hitTest(const HitTestRequest& request, const HitTestLocation& hitTestLocation, HitTestResult& result) { ASSERT(isSelfPaintingLayer() || hasSelfPaintingLayerDescendant()); diff --git a/engine/core/rendering/RenderLayer.h b/engine/core/rendering/RenderLayer.h index 5fbbef54a0b6b28e8a095796bfea0baa09f86f15..3e69137e9fb9f69e4a4fc171dbdb3df43e169821 100644 --- a/engine/core/rendering/RenderLayer.h +++ b/engine/core/rendering/RenderLayer.h @@ -149,11 +149,8 @@ public: void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) const; void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) const; - // The two main functions that use the layer system. The paint method - // paints the layers that intersect the damage rect from back to - // front. The hitTest method looks for mouse events by walking + // The hitTest method looks for mouse events by walking // layers that intersect the point from front to back. - bool hitTest(const HitTestRequest&, HitTestResult&); bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); // Pass offsetFromRoot if known. diff --git a/engine/web/WebLocalFrameImpl.cpp b/engine/web/WebLocalFrameImpl.cpp index 79a4179b17669c5349838360fa7d7e212e0aedb7..94d5c6480c0653e467795e8a6812634e776b90e4 100644 --- a/engine/web/WebLocalFrameImpl.cpp +++ b/engine/web/WebLocalFrameImpl.cpp @@ -496,7 +496,7 @@ VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& { HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping; HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(FloatPoint(point)))); - frame()->document()->renderView()->layer()->hitTest(request, result); + frame()->document()->renderView()->layer()->hitTest(request, result.hitTestLocation(), result); if (Node* node = result.targetNode()) return frame()->selection().selection().visiblePositionRespectingEditingBoundary(result.localPoint(), node);