[Webkit-unassigned] [Bug 87911] [chromium] There is no way to retrieve composition character rectangle in WebKit/chromium
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 5 09:23:34 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=87911
--- Comment #15 from Ryosuke Niwa <rniwa at webkit.org> 2012-06-05 09:23:30 PST ---
(From update of attachment 145786)
View in context: https://bugs.webkit.org/attachment.cgi?id=145786&action=review
> Source/WebKit/chromium/src/WebViewImpl.cpp:2043
> + tempRange->setStart(compositionRange->startContainer(ec), compositionRange->startOffset(ec) + index, ec);
> + tempRange->setEnd(compositionRange->startContainer(ec), compositionRange->startOffset(ec) + index + 1, ec);
On the second thought, this code assumes that the entire composition text is in a single node, which may not be the case.
You should probably take care of the case when they belong in different nodes.
A better way way to do this might be using TextIterator.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list