-
allan.jensen@nokia.com authored
https://bugs.webkit.org/show_bug.cgi?id=94101 Reviewed by Antonio Gomes. Source/WebCore: Adds a new filter for detecting nodes that provides extra context-menu items, and use that in a new set of functions for adjusting context-menu gestures. Tests: touchadjustment/context-menu-select-text.html touchadjustment/context-menu.html * page/EventHandler.cpp: (WebCore::EventHandler::bestContextMenuNodeForTouchPoint): (WebCore::EventHandler::adjustGesturePosition): * page/EventHandler.h: (EventHandler): * page/TouchAdjustment.cpp: (WebCore::TouchAdjustment::nodeProvidesContextMenuItems): (TouchAdjustment): (WebCore::findBestContextMenuCandidate): * page/TouchAdjustment.h: * testing/Internals.cpp: (WebCore::Internals::touchPositionAdjustedToBestContextMenuNode): (WebCore::Internals::touchNodeAdjustedToBestContextMenuNode): * testing/Internals.h: (Internals): * testing/Internals.idl: LayoutTests: Two new tests for context-menu touch adjustment. * touchadjustment/context-menu-expected.txt: Added. * touchadjustment/context-menu-select-text-expected.txt: Added. * touchadjustment/context-menu-select-text.html: Added. * touchadjustment/context-menu.html: Added. * touchadjustment/resources/touchadjustment.js: (nodeToString): (testTouchPoint): (testTouchPointContextMenu): (adjustTouchPointContextMenu): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4a470ad1