RESOLVED FIXED 64481
Implement WKPageCenterSelectionInVisibleArea
https://bugs.webkit.org/show_bug.cgi?id=64481
Summary Implement WKPageCenterSelectionInVisibleArea
Ada Chan
Reported 2011-07-13 13:45:05 PDT
This is the WebKit2 counterpart of WebView::centerSelectionInVisibleArea() in WebKit1. Related to <rdar://problem/9732174>
Attachments
Patch (5.67 KB, patch)
2011-07-13 14:28 PDT, Ada Chan
andersca: review+
Ada Chan
Comment 1 2011-07-13 14:28:45 PDT
Jeff Miller
Comment 2 2011-07-13 15:51:18 PDT
Comment on attachment 100712 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100712&action=review > Source/WebKit2/ChangeLog:9 > + (WKPageCenterSelectionInVisibleArea): You should add a description here, even it it's just to note that this function was added.
Ada Chan
Comment 3 2011-07-13 15:57:26 PDT
(In reply to comment #2) > (From update of attachment 100712 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=100712&action=review > > > Source/WebKit2/ChangeLog:9 > > + (WKPageCenterSelectionInVisibleArea): > > You should add a description here, even it it's just to note that this function was added. OK, added this comment: (WKPageCenterSelectionInVisibleArea): Added. Call WebPageProxy::centerSelectionInVisibleArea().
Anders Carlsson
Comment 4 2011-07-14 10:18:33 PDT
Comment on attachment 100712 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100712&action=review > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:1244 > + if (!frameSelection) > + return; Frame::selection can never return null, so you can just call coreFrame->selection()->revealSelection directly.
Ada Chan
Comment 5 2011-07-14 10:20:39 PDT
(In reply to comment #4) > (From update of attachment 100712 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=100712&action=review > > > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:1244 > > + if (!frameSelection) > > + return; > > Frame::selection can never return null, so you can just call coreFrame->selection()->revealSelection directly. OK, will do. Thanks!
Ada Chan
Comment 6 2011-07-14 10:44:57 PDT
Note You need to log in before you can comment on or make changes to this bug.