WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
22788
[Transforms] Server-side image maps not transform-aware
https://bugs.webkit.org/show_bug.cgi?id=22788
Summary
[Transforms] Server-side image maps not transform-aware
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
Add attachment
proposed patch, testcase, etc.
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
<
rdar://problem/127402573
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug