diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderFrameBase.cpp')
-rw-r--r-- | Source/WebCore/rendering/RenderFrameBase.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Source/WebCore/rendering/RenderFrameBase.cpp b/Source/WebCore/rendering/RenderFrameBase.cpp index da2dc5a12..aa82870d4 100644 --- a/Source/WebCore/rendering/RenderFrameBase.cpp +++ b/Source/WebCore/rendering/RenderFrameBase.cpp @@ -29,8 +29,6 @@ #include "Frame.h" #include "FrameView.h" #include "HTMLFrameElementBase.h" -#include "HitTestResult.h" -#include "RenderLayer.h" #include "RenderView.h" namespace WebCore { @@ -106,34 +104,4 @@ void RenderFrameBase::layoutWithFlattening(bool hasFixedWidth, bool hasFixedHeig setNeedsLayout(false); } -bool RenderFrameBase::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction action) -{ - if (request.allowsChildFrameContent()) { - FrameView* childFrameView = static_cast<FrameView*>(widget()); - RenderView* childRoot = childFrameView ? static_cast<RenderView*>(childFrameView->frame()->contentRenderer()) : 0; - - if (childRoot) { - LayoutPoint adjustedLocation = accumulatedOffset + location(); - LayoutPoint contentOffset = LayoutPoint(borderLeft() + paddingLeft(), borderTop() + paddingTop()) - childFrameView->scrollOffset(); - HitTestLocation newHitTestLocation(locationInContainer, -adjustedLocation - contentOffset); - HitTestRequest newHitTestRequest(request.type() | HitTestRequest::ChildFrameHitTest); - - bool isInsideChildFrame = childRoot->hitTest(newHitTestRequest, newHitTestLocation, result); - if (isInsideChildFrame) - return true; - - if (request.shouldTestChildFrameScrollBars()) { - // ScrollView scrollbars are not the same as RenderLayer scrollbars tested by RenderLayer::hitTestOverflowControls, - // so we need to test ScrollView scrollbars separately here. - // FIXME: Consider if this test could be done unconditionally. - Scrollbar* frameScrollbar = childFrameView->scrollbarAtPoint(newHitTestLocation.roundedPoint()); - if (frameScrollbar) - result.setScrollbar(frameScrollbar); - } - } - } - - return RenderPart::nodeAtPoint(request, result, locationInContainer, accumulatedOffset, action); -} - } |