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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 , m_cachedVisitedLinkHash(0) | 113 , m_cachedVisitedLinkHash(0) |
114 { | 114 { |
115 ScriptWrappable::init(this); | 115 ScriptWrappable::init(this); |
116 } | 116 } |
117 | 117 |
118 PassRefPtr<HTMLAnchorElement> HTMLAnchorElement::create(Document& document) | 118 PassRefPtr<HTMLAnchorElement> HTMLAnchorElement::create(Document& document) |
119 { | 119 { |
120 return adoptRef(new HTMLAnchorElement(aTag, document)); | 120 return adoptRef(new HTMLAnchorElement(aTag, document)); |
121 } | 121 } |
122 | 122 |
123 PassRefPtr<HTMLAnchorElement> HTMLAnchorElement::create(const QualifiedName& tag
Name, Document& document) | |
124 { | |
125 return adoptRef(new HTMLAnchorElement(tagName, document)); | |
126 } | |
127 | |
128 HTMLAnchorElement::~HTMLAnchorElement() | 123 HTMLAnchorElement::~HTMLAnchorElement() |
129 { | 124 { |
130 } | 125 } |
131 | 126 |
132 bool HTMLAnchorElement::supportsFocus() const | 127 bool HTMLAnchorElement::supportsFocus() const |
133 { | 128 { |
134 if (rendererIsEditable()) | 129 if (rendererIsEditable()) |
135 return HTMLElement::supportsFocus(); | 130 return HTMLElement::supportsFocus(); |
136 // If not a link we should still be able to focus the element if it has tabI
ndex. | 131 // If not a link we should still be able to focus the element if it has tabI
ndex. |
137 return isLink() || HTMLElement::supportsFocus(); | 132 return isLink() || HTMLElement::supportsFocus(); |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 preconnectToURL(url, motivation); | 582 preconnectToURL(url, motivation); |
588 m_hasIssuedPreconnect = true; | 583 m_hasIssuedPreconnect = true; |
589 } | 584 } |
590 | 585 |
591 bool HTMLAnchorElement::isInteractiveContent() const | 586 bool HTMLAnchorElement::isInteractiveContent() const |
592 { | 587 { |
593 return isLink(); | 588 return isLink(); |
594 } | 589 } |
595 | 590 |
596 } | 591 } |
OLD | NEW |