| Summary: | Images with usemap should not have a link state | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||
| Component: | New Bugs | Assignee: | Benjamin Poulain <benjamin> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | aboxhall, apinheiro, ap, buildbot, cfleizach, commit-queue, dmazzoni, esprehn+autocc, gyuyoung.kim, jcraig, jdiggs, kangil.han, mario, rniwa, samuel_white | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Benjamin Poulain
2014-10-25 19:18:00 PDT
Created attachment 240458 [details]
Patch
Comment on attachment 240458 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240458&action=review r=me > Source/WebCore/ChangeLog:11 > + Unfortunatelly, the Accessibility code was relying on the wrong behavior Unfortunately > Source/WebCore/ChangeLog:27 > + More with its setter for clarity. Move Committed r175213: <http://trac.webkit.org/changeset/175213> Comment on attachment 240458 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240458&action=review > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2458 > + if (node && is<HTMLImageElement>(*node) && !downcast<HTMLImageElement>(*node).fastGetAttribute(usemapAttr).isNull()) > + return ImageMapRole; Writing !fastGetAttribute(x).isNull() is a more wordy roundabout way of writing fastHasAttribute(x); we should probably use fastHasAttribute instead. (In reply to comment #4) > Comment on attachment 240458 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240458&action=review > > > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2458 > > + if (node && is<HTMLImageElement>(*node) && !downcast<HTMLImageElement>(*node).fastGetAttribute(usemapAttr).isNull()) > > + return ImageMapRole; > > Writing !fastGetAttribute(x).isNull() is a more wordy roundabout way of > writing fastHasAttribute(x); we should probably use fastHasAttribute instead. Indeed, will fix. Ben landed the cleanup in <https://trac.webkit.org/r175233>, which broke many tests. Hopefully fixed in <https://trac.webkit.org/r175237> (untested). Arg, that was dumb :( Thanks for fixing Alexey. |