RESOLVED WONTFIX 117491
Consider using element rect instead of selection rect to compute the center of an element to reduce code size
https://bugs.webkit.org/show_bug.cgi?id=117491
Summary Consider using element rect instead of selection rect to compute the center o...
Ryosuke Niwa
Reported 2013-06-10 22:53:31 PDT
We might want to merge https://chromium.googlesource.com/chromium/blink/+/a1fc9809d682deb494818a977cd480872f17f94e Remove unused blink accessibility code. The only functional change is to clickPoint, where we're now returning the center of the element rect rather than the selection rect. There's no difference 99% of the time. If that 1% is needed, we could rewrite that logic in far less code. Everything else was literally unused. Much is already implemented in Chromium's browser process; the rest couldn't be used without refactoring anyway. Chris, any opinion on this?
Attachments
chris fleizach
Comment 1 2013-06-10 23:38:42 PDT
They're pulling out a lot of the code that Mac Accessibility uses to provide a complete API implementation. The comment says that they have implementations of this code in the browser side. Also the clickPoint change breaks the ability to bring up the context menu on the selected text range (I think, that code is a few years old) So we should't take this change
Ryosuke Niwa
Comment 2 2013-06-10 23:40:59 PDT
(In reply to comment #1) > They're pulling out a lot of the code that Mac Accessibility uses to provide a complete API implementation. The comment says that they have implementations of this code in the browser side. > > Also the clickPoint change breaks the ability to bring up the context menu on the selected text range (I think, that code is a few years old) > > So we should't take this change Thanks!
Note You need to log in before you can comment on or make changes to this bug.