Changeset 92094 in webkit
- Timestamp:
- Jul 31, 2011 7:53:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r92093 r92094 1 2011-07-31 Dominic Cooney <dominicc@chromium.org> 2 3 Event target set to null post event dispatch 4 https://bugs.webkit.org/show_bug.cgi?id=63934 5 6 Reviewed by Dimitri Glazkov. 7 8 * fast/events/event-target-reset-expected.txt: Added. 9 * fast/events/event-target-reset.html: Added. 10 1 11 2011-07-31 Gavin Barraclough <barraclough@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r92089 r92094 1 2011-07-31 Dominic Cooney <dominicc@chromium.org> 2 3 Event target set to null post event dispatch 4 https://bugs.webkit.org/show_bug.cgi?id=63934 5 6 Reviewed by Dimitri Glazkov. 7 8 Test: fast/events/event-target-reset.html 9 10 * dom/EventDispatcher.cpp: 11 (WebCore::EventDispatcher::dispatchEvent): Reset target to outermost 12 shadow host. 13 1 14 2011-07-31 Sam Weinig <sam@webkit.org> 2 15 -
trunk/Source/WebCore/dom/EventDispatcher.cpp
r91923 r92094 365 365 // Ensure that after event dispatch, the event's target object is the 366 366 // outermost shadow DOM boundary. 367 event->setTarget(windowContext.target()); 367 if (topEventContext()) 368 event->setTarget(topEventContext()->target()); 369 else { 370 ASSERT(!m_node->isInShadowTree()); 371 event->setTarget(m_node.get()); 372 } 368 373 event->setCurrentTarget(0); 369 374 InspectorInstrumentation::didDispatchEvent(cookie);
Note: See TracChangeset
for help on using the changeset viewer.