Bug 22788

Summary: [Transforms] Server-side image maps not transform-aware
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, frances_c, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 15670    

Simon Fraser (smfr)
Reported 2008-12-10 10:45:41 PST
There is code in HTMLAnchorElement::defaultEventHandler(): HTMLImageElement* img = static_cast<HTMLImageElement*>(evt->target()->toNode()); if (img && img->isServerMap()) { RenderImage* r = static_cast<RenderImage*>(img->renderer()); if (r && e) { // FIXME: broken with transforms FloatPoint absPos = r->localToAbsolute(); int x = e->pageX() - absPos.x(); int y = e->pageY() - absPos.y(); url += "?"; url += String::number(x); url += ","; url += String::number(y); that is not transform-aware
Attachments
Frances Cornwall
Comment 1 2024-04-25 17:16:40 PDT
The code that was not transform-aware was removed from HTMLAnchorElement.cpp.
Karl Dubost
Comment 2 2024-04-25 23:07:36 PDT
Maybe @Simon should close this one.
Ahmad Saleem
Comment 3 2024-04-26 14:18:24 PDT
Related function (?) `appendServerMapMousePosition` has following FIXME: // FIXME: This should probably pass UseTransforms in the OptionSet<MapCoordinatesMode>. https://searchfox.org/wubkat/rev/1ade9b72a383daa2aee2e964d15c42877b9fb999/Source/WebCore/html/HTMLAnchorElement.cpp#157 It might still be needed? (@Simon)
Radar WebKit Bug Importer
Comment 4 2024-05-01 20:02:51 PDT
Note You need to log in before you can comment on or make changes to this bug.