| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 { | 207 { |
| 208 if (focused() == shouldBeFocused) | 208 if (focused() == shouldBeFocused) |
| 209 return; | 209 return; |
| 210 | 210 |
| 211 HTMLAnchorElement::setFocus(shouldBeFocused); | 211 HTMLAnchorElement::setFocus(shouldBeFocused); |
| 212 | 212 |
| 213 HTMLImageElement* imageElement = this->imageElement(); | 213 HTMLImageElement* imageElement = this->imageElement(); |
| 214 if (!imageElement) | 214 if (!imageElement) |
| 215 return; | 215 return; |
| 216 | 216 |
| 217 LayoutObject* renderer = imageElement->layoutObject(); | 217 LayoutObject* layoutObject = imageElement->layoutObject(); |
| 218 if (!renderer || !renderer->isImage()) | 218 if (!layoutObject || !layoutObject->isImage()) |
| 219 return; | 219 return; |
| 220 | 220 |
| 221 toLayoutImage(renderer)->areaElementFocusChanged(this); | 221 toLayoutImage(layoutObject)->areaElementFocusChanged(this); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) | 224 void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) |
| 225 { | 225 { |
| 226 if (!isFocusable()) | 226 if (!isFocusable()) |
| 227 return; | 227 return; |
| 228 | 228 |
| 229 HTMLImageElement* imageElement = this->imageElement(); | 229 HTMLImageElement* imageElement = this->imageElement(); |
| 230 if (!imageElement) | 230 if (!imageElement) |
| 231 return; | 231 return; |
| 232 | 232 |
| 233 imageElement->updateFocusAppearance(restorePreviousSelection); | 233 imageElement->updateFocusAppearance(restorePreviousSelection); |
| 234 } | 234 } |
| 235 | 235 |
| 236 } | 236 } |
| OLD | NEW |