[Webkit-unassigned] [Bug 17513] Add ability for image maps to be focused via tabbing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 22 17:44:16 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=17513


chris fleizach <cfleizach at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cfleizach at apple.com




--- Comment #7 from chris fleizach <cfleizach at apple.com>  2010-01-22 17:44:15 PST ---
just added the patch.

this is my first attempt to go into renderer land, so not sure if everything is
done the right way

the basic problem is that HTMLAreaElements don't have renderers, so they are
automatically left out of the focus loop.

Adding them back in required to override a few of the isFocusable() type
methods

Then to make it draw the highlight, i overrode some painting methods in
RenderImage to check if it had an image map with an active link.

If so, it would draw the focus rect

Since area elements don't have to be rects, I had to modify drawFocusRects to
also be able to take arbitrary Paths. 

Seems to work pretty well as far as I can tell. It passes all of the various
test cases i've seen

-- 
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