-
dglazkov@chromium.org authored
Reviewed by Darin Adler. Prevent event dispatch for events with related target when host is the target. https://bugs.webkit.org/show_bug.cgi?id=61979 * fast/events/shadow-boundary-crossing-expected.txt: Added test. * fast/events/shadow-boundary-crossing.html: Added expectations. 2011-06-02 Dimitri Glazkov <dglazkov@chromium.org> Reviewed by Darin Adler. Prevent event dispatch for events with related target when host is the target. https://bugs.webkit.org/show_bug.cgi?id=61979 Turns out, even if we trim the ancestor chain to 0, the event is still dispatched during AT_TARGET. So might as well be explicit about what we are trying to do and add a flag to prevent dispatch in these cases. * dom/EventDispatcher.cpp: (WebCore::EventDispatcher::adjustToShadowBoundaries): Added preventing dispatch when the ancestor chain is trimmed to nothing. (WebCore::EventDispatcher::EventDispatcher): Added initializer. (WebCore::EventDispatcher::dispatchEvent): Added a check to prevent dispatch. * dom/EventDispatcher.h: Added a def. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@88026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8a44e7e8