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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 void HTMLAnchorElement::sendPings(const KURL& destinationURL) | 356 void HTMLAnchorElement::sendPings(const KURL& destinationURL) |
357 { | 357 { |
358 const AtomicString& pingValue = getAttribute(pingAttr); | 358 const AtomicString& pingValue = getAttribute(pingAttr); |
359 if (pingValue.isNull() || !document().settings() || !document().settings()->
hyperlinkAuditingEnabled()) | 359 if (pingValue.isNull() || !document().settings() || !document().settings()->
hyperlinkAuditingEnabled()) |
360 return; | 360 return; |
361 | 361 |
362 UseCounter::count(document(), UseCounter::HTMLAnchorElementPingAttribute); | 362 UseCounter::count(document(), UseCounter::HTMLAnchorElementPingAttribute); |
363 | 363 |
364 SpaceSplitString pingURLs(pingValue, false); | 364 SpaceSplitString pingURLs(pingValue, false); |
365 for (unsigned i = 0; i < pingURLs.size(); i++) | 365 for (unsigned i = 0; i < pingURLs.size(); i++) |
366 PingLoader::sendPing(document().frame(), document().completeURL(pingURLs
[i]), destinationURL); | 366 PingLoader::sendLinkAuditPing(document().frame(), document().completeURL
(pingURLs[i]), destinationURL); |
367 } | 367 } |
368 | 368 |
369 void HTMLAnchorElement::handleClick(Event* event) | 369 void HTMLAnchorElement::handleClick(Event* event) |
370 { | 370 { |
371 event->setDefaultHandled(); | 371 event->setDefaultHandled(); |
372 | 372 |
373 LocalFrame* frame = document().frame(); | 373 LocalFrame* frame = document().frame(); |
374 if (!frame) | 374 if (!frame) |
375 return; | 375 return; |
376 | 376 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 preconnectToURL(url, motivation); | 587 preconnectToURL(url, motivation); |
588 m_hasIssuedPreconnect = true; | 588 m_hasIssuedPreconnect = true; |
589 } | 589 } |
590 | 590 |
591 bool HTMLAnchorElement::isInteractiveContent() const | 591 bool HTMLAnchorElement::isInteractiveContent() const |
592 { | 592 { |
593 return isLink(); | 593 return isLink(); |
594 } | 594 } |
595 | 595 |
596 } | 596 } |
OLD | NEW |