Adopt BlockPtr in ViewGestureController
Created attachment 290950 [details] Patch
Attachment 290950 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/ViewGestureController.h:269: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 290950 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=290950&action=review > Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:720 > void ViewGestureController::setDidMoveSwipeSnapshotCallback(void(^callback)(CGRect)) Maybe this should take a BlockPtr too? > Source/WebKit2/UIProcess/mac/ViewGestureControllerMac.mm:722 > + m_didMoveSwipeSnapshotCallback = makeBlockPtr(callback); I don't think you need to use makeBlockPtr here.
Created attachment 290957 [details] Patch
Attachment 290957 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/ViewGestureController.h:104: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/mac/ViewGestureController.h:269: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Cocoa/WebViewImpl.h:422: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm:3279: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 290957 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=290957&action=review > Source/WebKit2/UIProcess/Cocoa/WebViewImpl.h:422 > + void setDidMoveSwipeSnapshotCallback(BlockPtr<void (CGRect)>); Should be BlockPtr&& > Source/WebKit2/UIProcess/Cocoa/WebViewImpl.mm:3279 > +void WebViewImpl::setDidMoveSwipeSnapshotCallback(BlockPtr<void (CGRect)> callback) Should be BlockPtr&& and use WTFMove. > Source/WebKit2/UIProcess/mac/ViewGestureController.h:104 > + void setDidMoveSwipeSnapshotCallback(BlockPtr<void (CGRect)> callback) { m_didMoveSwipeSnapshotCallback = callback; } Should be BlockPtr&& and use WTFMove.
https://trac.webkit.org/changeset/206930