• hyatt@apple.com's avatar
    2008-09-22 David Hyatt <hyatt@apple.com> · 7cb18562
    hyatt@apple.com authored
            Fix a hit testing bug where events are mistakenly passed to subframes
            if the mouse is over the border or padding area of the frame.  Add
            a boolean flag, isOverWidget(), to hit test results so that EventHandler
            can check it to tell if the mouse is really over the content box of a
            RenderWidget and not just in the border/padding area.
            This is not testable, since the old code properly recovered when it detected
            that the mouse was outside the bounds of the view, but this prevents
            the extra passdown from even occurring (and is basically a nice cleanup).
            Reviewed by Oliver Hunt
            * page/EventHandler.cpp:
            * page/MouseEventWithHitTestResults.h:
            * rendering/HitTestResult.cpp:
            * rendering/HitTestResult.h:
            * rendering/RenderWidget.cpp:
            * rendering/RenderWidget.h:
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
EventHandler.cpp 80.1 KB