| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 } | 300 } |
| 301 | 301 |
| 302 void HTMLAnchorElement::SendPings(const KURL& destination_url) const { | 302 void HTMLAnchorElement::SendPings(const KURL& destination_url) const { |
| 303 const AtomicString& ping_value = getAttribute(pingAttr); | 303 const AtomicString& ping_value = getAttribute(pingAttr); |
| 304 if (ping_value.IsNull() || !GetDocument().GetSettings() || | 304 if (ping_value.IsNull() || !GetDocument().GetSettings() || |
| 305 !GetDocument().GetSettings()->GetHyperlinkAuditingEnabled()) | 305 !GetDocument().GetSettings()->GetHyperlinkAuditingEnabled()) |
| 306 return; | 306 return; |
| 307 | 307 |
| 308 UseCounter::Count(GetDocument(), UseCounter::kHTMLAnchorElementPingAttribute); | 308 UseCounter::Count(GetDocument(), UseCounter::kHTMLAnchorElementPingAttribute); |
| 309 | 309 |
| 310 SpaceSplitString ping_ur_ls(ping_value, SpaceSplitString::kShouldNotFoldCase); | 310 SpaceSplitString ping_urls(ping_value, SpaceSplitString::kShouldNotFoldCase); |
| 311 for (unsigned i = 0; i < ping_ur_ls.size(); i++) | 311 for (unsigned i = 0; i < ping_urls.size(); i++) |
| 312 PingLoader::SendLinkAuditPing(GetDocument().GetFrame(), | 312 PingLoader::SendLinkAuditPing(GetDocument().GetFrame(), |
| 313 GetDocument().CompleteURL(ping_ur_ls[i]), | 313 GetDocument().CompleteURL(ping_urls[i]), |
| 314 destination_url); | 314 destination_url); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void HTMLAnchorElement::HandleClick(Event* event) { | 317 void HTMLAnchorElement::HandleClick(Event* event) { |
| 318 event->SetDefaultHandled(); | 318 event->SetDefaultHandled(); |
| 319 | 319 |
| 320 LocalFrame* frame = GetDocument().GetFrame(); | 320 LocalFrame* frame = GetDocument().GetFrame(); |
| 321 if (!frame) | 321 if (!frame) |
| 322 return; | 322 return; |
| 323 | 323 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 401 |
| 402 Node::InsertionNotificationRequest HTMLAnchorElement::InsertedInto( | 402 Node::InsertionNotificationRequest HTMLAnchorElement::InsertedInto( |
| 403 ContainerNode* insertion_point) { | 403 ContainerNode* insertion_point) { |
| 404 InsertionNotificationRequest request = | 404 InsertionNotificationRequest request = |
| 405 HTMLElement::InsertedInto(insertion_point); | 405 HTMLElement::InsertedInto(insertion_point); |
| 406 LogAddElementIfIsolatedWorldAndInDocument("a", hrefAttr); | 406 LogAddElementIfIsolatedWorldAndInDocument("a", hrefAttr); |
| 407 return request; | 407 return request; |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace blink | 410 } // namespace blink |
| OLD | NEW |