| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 756 |
| 757 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); | 757 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); |
| 758 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode); | 758 page->chromeClient().mouseDidMoveOverElement(*m_frame, hoveredNode); |
| 759 | 759 |
| 760 return result; | 760 return result; |
| 761 } | 761 } |
| 762 | 762 |
| 763 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) { | 763 void EventHandler::handleMouseLeaveEvent(const WebMouseEvent& event) { |
| 764 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent"); | 764 TRACE_EVENT0("blink", "EventHandler::handleMouseLeaveEvent"); |
| 765 | 765 |
| 766 Page* page = m_frame->page(); |
| 767 if (page) |
| 768 page->chromeClient().clearToolTip(*m_frame); |
| 766 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true); | 769 handleMouseMoveOrLeaveEvent(event, Vector<WebMouseEvent>(), 0, false, true); |
| 767 } | 770 } |
| 768 | 771 |
| 769 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent( | 772 WebInputEventResult EventHandler::handleMouseMoveOrLeaveEvent( |
| 770 const WebMouseEvent& mouseEvent, | 773 const WebMouseEvent& mouseEvent, |
| 771 const Vector<WebMouseEvent>& coalescedEvents, | 774 const Vector<WebMouseEvent>& coalescedEvents, |
| 772 HitTestResult* hoveredNode, | 775 HitTestResult* hoveredNode, |
| 773 bool onlyUpdateScrollbars, | 776 bool onlyUpdateScrollbars, |
| 774 bool forceLeave) { | 777 bool forceLeave) { |
| 775 ASSERT(m_frame); | 778 ASSERT(m_frame); |
| (...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 } | 2136 } |
| 2134 | 2137 |
| 2135 FrameHost* EventHandler::frameHost() const { | 2138 FrameHost* EventHandler::frameHost() const { |
| 2136 if (!m_frame->page()) | 2139 if (!m_frame->page()) |
| 2137 return nullptr; | 2140 return nullptr; |
| 2138 | 2141 |
| 2139 return &m_frame->page()->frameHost(); | 2142 return &m_frame->page()->frameHost(); |
| 2140 } | 2143 } |
| 2141 | 2144 |
| 2142 } // namespace blink | 2145 } // namespace blink |
| OLD | NEW |