Skip to content
  • allan.jensen@nokia.com's avatar
    Allow child-frame content in hit-tests. · 8083183d
    allan.jensen@nokia.com authored
    https://bugs.webkit.org/show_bug.cgi?id=95204
    
    .:
    
    Reviewed by Antonio Gomes.
    
    Update exported symbols.
    
    * Source/autotools/symbols.filter:
    
    Source/WebCore:
    
    Reviewed by Antonio Gomes.
    
    Refactors how EventHandler::hitTestResultAtPoint handles child-frame content,
    it is now handled by the hit test itself controlled by the AllowChildFrameContent
    flag in HitTestRequest.
    
    Tests: fast/dom/nodesFromRect/nodesFromRect-child-frame-content.html
           touchadjustment/iframe-boundary.html
    
    * WebCore.exp.in:
    * WebCore.order:
    * dom/Document.cpp:
    (WebCore::Document::nodesFromRect):
    * dom/Document.h:
    (Document):
    * page/EventHandler.cpp:
    (WebCore::EventHandler::hitTestResultAtPoint):
    * rendering/HitTestRequest.h:
    (WebCore::HitTestRequest::allowChildFrameContent):
    (WebCore::HitTestRequest::childFrameHitTest):
    (WebCore::HitTestRequest::testChildFrameScrollBars):
    * rendering/RenderFrameBase.cpp:
    (WebCore::RenderFrameBase::nodeAtPoint):
    (WebCore):
    * rendering/RenderFrameBase.h:
    (RenderFrameBase):
    * rendering/RenderLayer.cpp:
    (WebCore::RenderLayer::hitTest):
    * testing/Internals.cpp:
    (WebCore::Internals::nodesFromRect):
    * testing/Internals.h:
    (Internals):
    * testing/Internals.idl:
    
    Source/WebKit2:
    
    Reviewed by Antonio Gomes.
    
    Update symbols for the Windows build-system.
    
    * win/WebKit2.def:
    * win/WebKit2CFLite.def:
    
    LayoutTests:
    
    Reviewed by Antonio Gomes.
    Touch-Adjustment test by Kevin Ellis
    
    Two new tests for hit-testing child frame content. One for testing it as an option to
    nodesFromRect, and one testing its improvement on touch adjustment on iframe boundaries.
    
    * fast/dom/nodesFromRect/nodesFromRect-child-frame-content-expected.txt: Added.
    * fast/dom/nodesFromRect/nodesFromRect-child-frame-content.html: Added.
    * fast/dom/nodesFromRect/resources/child-frame.html: Added.
    * fast/dom/nodesFromRect/resources/nodesFromRect.js:
    (check):
    (checkShadowContent):
    (checkRect):
    (nodesFromRectAsString):
    * touchadjustment/iframe-boundary-expected.txt: Added.
    * touchadjustment/iframe-boundary.html: Added.
    * touchadjustment/resources/inner-content-page.html: Added.
    * touchadjustment/resources/inner-navigation-frame.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8083183d