Adjust the WKBundlePageOverlay Data Detectors SPI
Created attachment 241468 [details] Patch
Attachment 241468 [details] did not pass style-queue: ERROR: Source/WebKit2/WebProcess/WebPage/WebPageOverlay.cpp:122: Declaration has space between type name and * in DDActionContext *WebPageOverlay [whitespace/declaration] [3] ERROR: Source/WebKit2/WebProcess/WebPage/WebPageOverlay.h:83: The parameter name "range" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 241468 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241468&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:588 > + RefPtr<WebPageProxy> retainedPage = _page; I'd just call this "page", and add a comment specifying what it's used for. > Source/WebKit2/WebProcess/WebPage/WebPage.messages.in:403 > + DataDetectorsPresentedUI() DidPresentUI. > Source/WebKit2/WebProcess/WebPage/WebPage.messages.in:404 > + DataDetectorsChangedUI() DidChangeUI. > Source/WebKit2/WebProcess/WebPage/WebPage.messages.in:405 > + DataDetectorsHidUI() DidHideUI. > Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm:1099 > + if (DDActionContext *actionContext = webOverlay->actionContextForResultAtPoint(locationInContentCoordinates, mainResultRange)) { Can this use a continue instead of a big nested if statement?
http://trac.webkit.org/changeset/176086