WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138685
Adjust the WKBundlePageOverlay Data Detectors SPI
https://bugs.webkit.org/show_bug.cgi?id=138685
Summary
Adjust the WKBundlePageOverlay Data Detectors SPI
Tim Horton
Reported
2014-11-12 22:20:12 PST
Adjust the WKBundlePageOverlay Data Detectors SPI
Attachments
Patch
(19.47 KB, patch)
2014-11-12 22:20 PST
,
Tim Horton
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2014-11-12 22:20:40 PST
Created
attachment 241468
[details]
Patch
WebKit Commit Bot
Comment 2
2014-11-12 22:22:48 PST
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.
Anders Carlsson
Comment 3
2014-11-13 11:50:52 PST
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?
Tim Horton
Comment 4
2014-11-13 13:21:13 PST
http://trac.webkit.org/changeset/176086
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug