Changeset 24267 in webkit
- Timestamp:
- Jul 13, 2007, 11:55:42 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24266 r24267 1 2007-07-13 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Adele. 4 5 Test for <rdar://problem/5192256> 6 click() in onchange handler causes another change event (causes hang at http://forums.whirlpool.net.au/) 7 8 * fast/events/onchange-click-hang-expected.txt: Added. 9 * fast/events/onchange-click-hang.html: Added. 10 1 11 2007-07-13 Antti Koivisto <antti@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r24266 r24267 1 2007-07-13 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Adele. 4 5 Fix <rdar://problem/5192256> 6 click() in onchange handler causes another change event (causes hang at http://forums.whirlpool.net.au/) 7 8 Guard against generating a simulated event from within a simulated event in the same node. Try to 9 match Firefox behavior. 10 11 * dom/EventTargetNode.cpp: 12 (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): 13 (WebCore::EventTargetNode::dispatchSimulatedClick): 14 * dom/Node.cpp: 15 (WebCore::Node::Node): 16 * dom/Node.h: 17 1 18 2007-07-13 Antti Koivisto <antti@apple.com> 2 19 -
trunk/WebCore/dom/EventTargetNode.cpp
r20780 r24267 402 402 { 403 403 ASSERT(!eventDispatchForbidden()); 404 405 if (m_dispatchingSimulatedEvent) 406 return; 404 407 405 408 bool ctrlKey = false; … … 413 416 metaKey = keyStateEvent->metaKey(); 414 417 } 418 419 m_dispatchingSimulatedEvent = true; 415 420 416 421 // Like Gecko, we just pass 0 for everything when we make a fake mouse event. … … 418 423 dispatchMouseEvent(eventType, 0, 0, 0, 0, 0, 0, 419 424 ctrlKey, altKey, shiftKey, metaKey, true, 0, underlyingEvent); 425 426 m_dispatchingSimulatedEvent = false; 420 427 } 421 428 422 429 void EventTargetNode::dispatchSimulatedClick(PassRefPtr<Event> event, bool sendMouseEvents, bool showPressedLook) 423 430 { 431 if (m_dispatchingSimulatedEvent) 432 return; 433 424 434 // send mousedown and mouseup before the click, if requested 425 435 if (sendMouseEvents) -
trunk/WebCore/dom/Node.cpp
r24099 r24267 154 154 m_inActiveChain(false), 155 155 m_inDetach(false), 156 m_dispatchingSimulatedEvent(false), 156 157 m_inSubtreeMark(false) 157 158 { -
trunk/WebCore/dom/Node.h
r24099 r24267 483 483 484 484 bool m_inDetach : 1; 485 bool m_dispatchingSimulatedEvent : 1; 485 486 486 487 public: 487 488 bool m_inSubtreeMark : 1; 489 // 0 bits left 488 490 489 491 private:
Note:
See TracChangeset
for help on using the changeset viewer.