| | 1 | 2007-01-26 Beth Dakin <bdakin@apple.com> |
| | 2 | |
| | 3 | Reviewed by Darin. |
| | 4 | |
| | 5 | Fix for <rdar://problem/4956565> REGRESSION: After scrolling frame, |
| | 6 | hovering over link in this frame doesn't change cursor to pointing |
| | 7 | hand |
| | 8 | |
| | 9 | The mouseMove event was not being propagated correctly after using |
| | 10 | the mouse to scroll the frame because m_mousePressed was never |
| | 11 | getting set to false. |
| | 12 | |
| | 13 | * page/EventHandler.cpp: |
| | 14 | (WebCore::EventHandler::handleMousePressEvent): This code does not |
| | 15 | belong here. |
| | 16 | * page/EventHandler.h: lastEventIsMouseUp() is only ever relevant |
| | 17 | in EventHandlerMac, so it can just be a static function there. |
| | 18 | * page/mac/EventHandlerMac.mm: |
| | 19 | (WebCore::lastEventIsMouseUp): Make this static. |
| | 20 | (WebCore::EventHandler::passMouseDownEventToWidget): Here is where |
| | 21 | we need to set m_mousePressed to false if lastEventIsMouseUp() is |
| | 22 | true. |
| | 23 | |