Changeset 238345 in webkit
- Timestamp:
- Nov 17, 2018 2:04:51 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r238344 r238345 1 2018-11-17 Jonathan Hammer <jonathan@e3software.com> 2 3 Caret stops blinking after context menu shown 4 https://bugs.webkit.org/show_bug.cgi?id=191715 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/events/contextmenu-dismiss-blink-caret-expected.txt: Added. 9 * fast/events/contextmenu-dismiss-blink-caret.html: Added. 10 1 11 2018-11-16 Antoine Quint <graouts@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r238344 r238345 1 2018-11-17 Jonathan Hammer <jonathan@e3software.com> 2 3 Caret stops blinking after context menu shown 4 https://bugs.webkit.org/show_bug.cgi?id=191715 5 6 Reviewed by Ryosuke Niwa. 7 8 Changed EventHandler::sendContextMenuEvent to un-suspend caret blinking so that 9 the caret continues to blink even after the context menu is dismissed. The normal 10 way of un-suspendeding caret blinking (in EventHandler::handleMouseReleaseEvent) does 11 not apply in the case of context menus because handleMouseReleaseEvent is not 12 called once the context menu is up. 13 14 Test: fast/events/contextmenu-dismiss-blink-caret.html 15 16 * page/EventHandler.cpp: 17 (WebCore::EventHandler::sendContextMenuEvent): 18 * testing/Internals.cpp: 19 (WebCore::Internals::isCaretBlinkingSuspended): 20 * testing/Internals.h: 21 * testing/Internals.idl: 22 1 23 2018-11-16 Antoine Quint <graouts@apple.com> 2 24 -
trunk/Source/WebCore/page/EventHandler.cpp
r238078 r238345 2878 2878 return false; 2879 2879 2880 // Caret blinking is normally un-suspended in handleMouseReleaseEvent, but we 2881 // won't receive that event once the context menu is up. 2882 m_frame.selection().setCaretBlinkingSuspended(false); 2880 2883 // Clear mouse press state to avoid initiating a drag while context menu is up. 2881 2884 m_mousePressed = false; -
trunk/Source/WebCore/testing/Internals.cpp
r238212 r238345 1480 1480 return DOMRect::create(document->frame()->selection().absoluteCaretBounds()); 1481 1481 } 1482 1483 ExceptionOr<bool> Internals::isCaretBlinkingSuspended() 1484 { 1485 Document* document = contextDocument(); 1486 if (!document || !document->frame()) 1487 return Exception { InvalidAccessError }; 1488 1489 return document->frame()->selection().isCaretBlinkingSuspended(); 1490 } 1482 1491 1483 1492 Ref<DOMRect> Internals::boundingBox(Element& element) -
trunk/Source/WebCore/testing/Internals.h
r238212 r238345 221 221 222 222 ExceptionOr<Ref<DOMRect>> absoluteCaretBounds(); 223 ExceptionOr<bool> isCaretBlinkingSuspended(); 223 224 224 225 Ref<DOMRect> boundingBox(Element&); -
trunk/Source/WebCore/testing/Internals.idl
r238212 r238345 239 239 240 240 [MayThrowException] DOMRect absoluteCaretBounds(); 241 [MayThrowException] boolean isCaretBlinkingSuspended(); 241 242 242 243 DOMRect boundingBox(Element element);
Note: See TracChangeset
for help on using the changeset viewer.