Bug 73595

Summary: Focus ring of imagemap's area element does not scale when CSS zoom style is applied
Product: WebKit Reporter: Max Vujovic <mvujovic>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, jonlee, mvujovic, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Reproduction
none
Patch none

Description Max Vujovic 2011-12-01 15:26:54 PST
Created attachment 117503 [details]
Reproduction

In the attached reproduction, the clickable region of the area element scales with the image, but the area element's focus ring does not scale. The image has a CSS zoom property applied to it.
Comment 1 Max Vujovic 2011-12-01 17:24:01 PST
Created attachment 117531 [details]
Patch

HTMLAreaElement is only considering the page zoom when computing the path for drawing the focus ring. In the patch, I've updated HTMLAreaElement to use the RenderObject's effectiveZoom instead of the Frame's page zoom. effectiveZoom takes into account both the page zoom and any scaling from a CSS zoom property.
Comment 2 WebKit Review Bot 2011-12-01 22:33:10 PST
Comment on attachment 117531 [details]
Patch

Clearing flags on attachment: 117531

Committed r101743: <http://trac.webkit.org/changeset/101743>
Comment 3 WebKit Review Bot 2011-12-01 22:33:15 PST
All reviewed patches have been landed.  Closing bug.