RESOLVED FIXED 168534
Add a new drag code path and use it for dragging plain text
https://bugs.webkit.org/show_bug.cgi?id=168534
Summary Add a new drag code path and use it for dragging plain text
Anders Carlsson
Reported 2017-02-17 14:55:25 PST
Add a new drag code path and use it for dragging plain text
Attachments
Patch (48.77 KB, patch)
2017-02-17 15:19 PST, Anders Carlsson
no flags
Patch (48.77 KB, patch)
2017-02-17 15:24 PST, Anders Carlsson
no flags
Patch (48.77 KB, patch)
2017-02-17 15:59 PST, Anders Carlsson
ggaren: review+
Anders Carlsson
Comment 1 2017-02-17 15:19:42 PST
WebKit Commit Bot
Comment 2 2017-02-17 15:21:50 PST
Attachment 301997 [details] did not pass style-queue: ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:221: Missing space around : in range-based for statement [whitespace/colon] [4] ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:224: Extra space in capture list. [whitespace/brackets] [4] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4712: Missing space before { [whitespace/braces] [5] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4714: The parameter name "page" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebKit/mac/WebCoreSupport/WebDragClient.mm:155: Extra space in capture list. [whitespace/brackets] [4] Total errors found: 5 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 3 2017-02-17 15:24:25 PST
WebKit Commit Bot
Comment 4 2017-02-17 15:26:41 PST
Attachment 301998 [details] did not pass style-queue: ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:221: Missing space around : in range-based for statement [whitespace/colon] [4] ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:224: Extra space in capture list. [whitespace/brackets] [4] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4712: Missing space before { [whitespace/braces] [5] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4714: The parameter name "page" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebKit/mac/WebCoreSupport/WebDragClient.mm:155: Extra space in capture list. [whitespace/brackets] [4] Total errors found: 5 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 5 2017-02-17 15:59:51 PST
WebKit Commit Bot
Comment 6 2017-02-17 16:01:56 PST
Attachment 302005 [details] did not pass style-queue: ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:221: Missing space around : in range-based for statement [whitespace/colon] [4] ERROR: Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:224: Extra space in capture list. [whitespace/brackets] [4] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4712: Missing space before { [whitespace/braces] [5] ERROR: Source/WebKit/mac/WebView/WebHTMLView.mm:4714: The parameter name "page" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebKit/mac/WebCoreSupport/WebDragClient.mm:155: Extra space in capture list. [whitespace/brackets] [4] Total errors found: 5 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 7 2017-02-17 21:06:02 PST
Comment on attachment 302005 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=302005&action=review > Source/WebCore/page/DragController.cpp:746 > + float x = (mouseDraggedPoint.x() - draggingRect.x()) / (float)draggingRect.width(); > + float y = (mouseDraggedPoint.y() - draggingRect.y()) / (float)draggingRect.height(); Do we still like static_cast<float>? > Source/WebKit/mac/WebCoreSupport/WebDragClient.mm:153 > + // FIXME: We should be able to make a fake event with the mosue dragged coordinates. mouse
Anders Carlsson
Comment 8 2017-02-20 11:34:46 PST
Note You need to log in before you can comment on or make changes to this bug.