[webkit-dev] About map and img

Darin Adler darin at apple.com
Tue Jan 6 06:34:23 PST 2009


On Jan 5, 2009, at 11:08 PM, zhenghe zhang wrote:

> The <map> is a attribute in the <img>,.
> In the webkit, Through code how to achieve their relationship

There is a function called Document::getImageMap that finds the map  
element given the value of the image element's useMap attribute. The  
function RenderImage::imageMap is the one that performs this operation.

     -- Darin



More information about the webkit-dev mailing list