| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 using namespace HTMLNames; | 44 using namespace HTMLNames; |
| 45 | 45 |
| 46 HTMLAnchorElement::HTMLAnchorElement(const QualifiedName& tagName, Document& doc
ument) | 46 HTMLAnchorElement::HTMLAnchorElement(const QualifiedName& tagName, Document& doc
ument) |
| 47 : HTMLElement(tagName, document) | 47 : HTMLElement(tagName, document) |
| 48 , m_linkRelations(0) | 48 , m_linkRelations(0) |
| 49 , m_cachedVisitedLinkHash(0) | 49 , m_cachedVisitedLinkHash(0) |
| 50 , m_wasFocusedByMouse(false) | 50 , m_wasFocusedByMouse(false) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<HTMLAnchorElement> HTMLAnchorElement::create(Document& do
cument) | 54 RawPtr<HTMLAnchorElement> HTMLAnchorElement::create(Document& document) |
| 55 { | 55 { |
| 56 return adoptRefWillBeNoop(new HTMLAnchorElement(aTag, document)); | 56 return (new HTMLAnchorElement(aTag, document)); |
| 57 } | 57 } |
| 58 | 58 |
| 59 HTMLAnchorElement::~HTMLAnchorElement() | 59 HTMLAnchorElement::~HTMLAnchorElement() |
| 60 { | 60 { |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool HTMLAnchorElement::supportsFocus() const | 63 bool HTMLAnchorElement::supportsFocus() const |
| 64 { | 64 { |
| 65 if (hasEditableStyle()) | 65 if (hasEditableStyle()) |
| 66 return HTMLElement::supportsFocus(); | 66 return HTMLElement::supportsFocus(); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 } | 383 } |
| 384 | 384 |
| 385 Node::InsertionNotificationRequest HTMLAnchorElement::insertedInto(ContainerNode
* insertionPoint) | 385 Node::InsertionNotificationRequest HTMLAnchorElement::insertedInto(ContainerNode
* insertionPoint) |
| 386 { | 386 { |
| 387 InsertionNotificationRequest request = HTMLElement::insertedInto(insertionPo
int); | 387 InsertionNotificationRequest request = HTMLElement::insertedInto(insertionPo
int); |
| 388 logAddElementIfIsolatedWorldAndInDocument("a", hrefAttr); | 388 logAddElementIfIsolatedWorldAndInDocument("a", hrefAttr); |
| 389 return request; | 389 return request; |
| 390 } | 390 } |
| 391 | 391 |
| 392 } // namespace blink | 392 } // namespace blink |
| OLD | NEW |