WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
104627
Add an optional output to WebViewImpl::selectionBounds to query the order of selection anchor
https://bugs.webkit.org/show_bug.cgi?id=104627
Summary
Add an optional output to WebViewImpl::selectionBounds to query the order of ...
Tien-Ren Chen
Reported
2012-12-10 20:59:41 PST
Add an optional output to WebViewImpl::selectionBounds to query the order of selection anchor
Attachments
Patch
(4.03 KB, patch)
2012-12-10 21:03 PST
,
Tien-Ren Chen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tien-Ren Chen
Comment 1
2012-12-10 21:03:59 PST
Created
attachment 178703
[details]
Patch
WebKit Review Bot
Comment 2
2012-12-10 21:06:31 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Darin Fisher (:fishd, Google)
Comment 3
2012-12-10 21:53:33 PST
Comment on
attachment 178703
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=178703&action=review
> Source/WebKit/chromium/src/WebViewImpl.cpp:2356 > if (!frame->selection()->selection().isBaseFirst())
I'm a little confused here. It looks like anchor and focus are being swapped when isAnchorFirst is false. Is that unnecessary if you are returning isAnchorFirst to the caller? It seems a little odd to apply a transform on the WebKit side but also return the details of the transform.
Tien-Ren Chen
Comment 4
2012-12-11 14:26:14 PST
(In reply to
comment #3
)
> (From update of
attachment 178703
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=178703&action=review
> > > Source/WebKit/chromium/src/WebViewImpl.cpp:2356 > > if (!frame->selection()->selection().isBaseFirst()) > > I'm a little confused here. It looks like anchor and focus are being swapped when isAnchorFirst is false. Is that unnecessary if you are returning isAnchorFirst to the caller? It seems a little odd to apply a transform on the WebKit side but also return the details of the transform.
It is used to return start and end but 66973 changed it to anchor and focus, and there is no way for us to query start and end from the embedder side.
Anders Carlsson
Comment 5
2014-02-05 11:02:36 PST
Comment on
attachment 178703
[details]
Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
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