Changeset 112134 in webkit
- Timestamp:
- Mar 26, 2012 11:51:52 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112133 r112134 1 2012-03-26 Antaryami Pandia <antaryami.pandia@motorola.com> 2 3 An <area> element remains focusable even though its associated <img> is not rendered. 4 https://bugs.webkit.org/show_bug.cgi?id=71788 5 6 Reviewed by Andy Estes. 7 8 Test sequential focus navigation. 9 10 * fast/events/tab-test-not-visible-imagemap-expected.txt: Added. 11 * fast/events/tab-test-not-visible-imagemap.html: Added. 12 1 13 2012-03-26 Ojan Vafai <ojan@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r112130 r112134 1 2012-03-26 Antaryami Pandia <antaryami.pandia@motorola.com> 2 3 An <area> element remains focusable even though its associated <img> is not rendered. 4 https://bugs.webkit.org/show_bug.cgi?id=71788 5 6 Reviewed by Andy Estes. 7 8 HTMLAreaElement::isFocusable() needs to consider the display and 9 visibility state. 10 11 Test: fast/events/tab-test-not-visible-imagemap.html 12 13 * html/HTMLAreaElement.cpp: 14 (WebCore::HTMLAreaElement::imageElement): 15 (WebCore::HTMLAreaElement::isFocusable): 16 * html/HTMLAreaElement.h: Make imageElement() const. 17 (HTMLAreaElement): 18 1 19 2012-03-26 Anton Muhin <antonm@chromium.org> 2 20 -
trunk/Source/WebCore/html/HTMLAreaElement.cpp
r111126 r112134 180 180 } 181 181 182 HTMLImageElement* HTMLAreaElement::imageElement() 182 HTMLImageElement* HTMLAreaElement::imageElement() const 183 183 { 184 184 Node* mapElement = parentNode(); … … 201 201 bool HTMLAreaElement::isFocusable() const 202 202 { 203 HTMLImageElement* image = imageElement(); 204 if (!image || !image->renderer() || image->renderer()->style()->visibility() != VISIBLE) 205 return false; 206 203 207 return supportsFocus() && Element::tabIndex() >= 0; 204 208 } -
trunk/Source/WebCore/html/HTMLAreaElement.h
r106769 r112134 46 46 47 47 // The parent map's image. 48 HTMLImageElement* imageElement() ;48 HTMLImageElement* imageElement() const; 49 49 50 50 private:
Note: See TracChangeset
for help on using the changeset viewer.