| 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 reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 void HTMLAnchorElement::defaultEventHandler(Event* event) | 232 void HTMLAnchorElement::defaultEventHandler(Event* event) |
| 233 { | 233 { |
| 234 if (isLink()) { | 234 if (isLink()) { |
| 235 if (focused() && isEnterKeyKeydownEvent(event) && isLiveLink()) { | 235 if (focused() && isEnterKeyKeydownEvent(event) && isLiveLink()) { |
| 236 event->setDefaultHandled(); | 236 event->setDefaultHandled(); |
| 237 dispatchSimulatedClick(event); | 237 dispatchSimulatedClick(event); |
| 238 return; | 238 return; |
| 239 } | 239 } |
| 240 | 240 |
| 241 // TODO(horo): Call NavigationHintSender::handleEvent() when | 241 if (RuntimeEnabledFeatures::speculativeLaunchServiceWorkerEnabled()) |
| 242 // SpeculativeLaunchServiceWorker feature is enabled. | 242 ensureNavigationHintSender()->handleEvent(event); |
| 243 // ensureNavigationHintSender()->handleEvent(event); | |
| 244 | 243 |
| 245 if (isLinkClick(event) && isLiveLink()) { | 244 if (isLinkClick(event) && isLiveLink()) { |
| 246 handleClick(event); | 245 handleClick(event); |
| 247 return; | 246 return; |
| 248 } | 247 } |
| 249 } | 248 } |
| 250 | 249 |
| 251 HTMLElement::defaultEventHandler(event); | 250 HTMLElement::defaultEventHandler(event); |
| 252 } | 251 } |
| 253 | 252 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 } | 476 } |
| 478 | 477 |
| 479 HTMLAnchorElement::NavigationHintSender* HTMLAnchorElement::ensureNavigationHint
Sender() | 478 HTMLAnchorElement::NavigationHintSender* HTMLAnchorElement::ensureNavigationHint
Sender() |
| 480 { | 479 { |
| 481 if (!m_navigationHintSender) | 480 if (!m_navigationHintSender) |
| 482 m_navigationHintSender = NavigationHintSender::create(this); | 481 m_navigationHintSender = NavigationHintSender::create(this); |
| 483 return m_navigationHintSender; | 482 return m_navigationHintSender; |
| 484 } | 483 } |
| 485 | 484 |
| 486 } // namespace blink | 485 } // namespace blink |
| OLD | NEW |