| 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 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 return isLink(); | 142 return isLink(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 bool HTMLAnchorElement::shouldHaveFocusAppearance() const { | 145 bool HTMLAnchorElement::shouldHaveFocusAppearance() const { |
| 146 return !m_wasFocusedByMouse || HTMLElement::supportsFocus(); | 146 return !m_wasFocusedByMouse || HTMLElement::supportsFocus(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void HTMLAnchorElement::dispatchFocusEvent( | 149 void HTMLAnchorElement::dispatchFocusEvent( |
| 150 Element* oldFocusedElement, | 150 Element* oldFocusedElement, |
| 151 WebFocusType type, | 151 WebFocusType type, |
| 152 InputDeviceCapabilities* sourceCapabilities) { | 152 const InputDeviceCapabilitiesValue& sourceCapabilities) { |
| 153 if (type != WebFocusTypePage) | 153 if (type != WebFocusTypePage) |
| 154 m_wasFocusedByMouse = type == WebFocusTypeMouse; | 154 m_wasFocusedByMouse = type == WebFocusTypeMouse; |
| 155 HTMLElement::dispatchFocusEvent(oldFocusedElement, type, sourceCapabilities); | 155 HTMLElement::dispatchFocusEvent(oldFocusedElement, type, sourceCapabilities); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void HTMLAnchorElement::dispatchBlurEvent( | 158 void HTMLAnchorElement::dispatchBlurEvent( |
| 159 Element* newFocusedElement, | 159 Element* newFocusedElement, |
| 160 WebFocusType type, | 160 WebFocusType type, |
| 161 InputDeviceCapabilities* sourceCapabilities) { | 161 const InputDeviceCapabilitiesValue& sourceCapabilities) { |
| 162 if (type != WebFocusTypePage) | 162 if (type != WebFocusTypePage) |
| 163 m_wasFocusedByMouse = false; | 163 m_wasFocusedByMouse = false; |
| 164 HTMLElement::dispatchBlurEvent(newFocusedElement, type, sourceCapabilities); | 164 HTMLElement::dispatchBlurEvent(newFocusedElement, type, sourceCapabilities); |
| 165 } | 165 } |
| 166 | 166 |
| 167 bool HTMLAnchorElement::isMouseFocusable() const { | 167 bool HTMLAnchorElement::isMouseFocusable() const { |
| 168 if (isLink()) | 168 if (isLink()) |
| 169 return supportsFocus(); | 169 return supportsFocus(); |
| 170 | 170 |
| 171 return HTMLElement::isMouseFocusable(); | 171 return HTMLElement::isMouseFocusable(); |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 } | 483 } |
| 484 | 484 |
| 485 HTMLAnchorElement::NavigationHintSender* | 485 HTMLAnchorElement::NavigationHintSender* |
| 486 HTMLAnchorElement::ensureNavigationHintSender() { | 486 HTMLAnchorElement::ensureNavigationHintSender() { |
| 487 if (!m_navigationHintSender) | 487 if (!m_navigationHintSender) |
| 488 m_navigationHintSender = NavigationHintSender::create(this); | 488 m_navigationHintSender = NavigationHintSender::create(this); |
| 489 return m_navigationHintSender; | 489 return m_navigationHintSender; |
| 490 } | 490 } |
| 491 | 491 |
| 492 } // namespace blink | 492 } // namespace blink |
| OLD | NEW |