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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); | 259 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); |
260 } | 260 } |
261 | 261 |
262 bool HTMLAnchorElement::hasLegalLinkAttribute(const QualifiedName& name) const | 262 bool HTMLAnchorElement::hasLegalLinkAttribute(const QualifiedName& name) const |
263 { | 263 { |
264 return name == hrefAttr || HTMLElement::hasLegalLinkAttribute(name); | 264 return name == hrefAttr || HTMLElement::hasLegalLinkAttribute(name); |
265 } | 265 } |
266 | 266 |
267 bool HTMLAnchorElement::canStartSelection() const | 267 bool HTMLAnchorElement::canStartSelection() const |
268 { | 268 { |
269 // FIXME: We probably want this same behavior in SVGAElement too | |
270 if (!isLink()) | 269 if (!isLink()) |
271 return HTMLElement::canStartSelection(); | 270 return HTMLElement::canStartSelection(); |
272 return rendererIsEditable(); | 271 return rendererIsEditable(); |
273 } | 272 } |
274 | 273 |
275 bool HTMLAnchorElement::draggable() const | 274 bool HTMLAnchorElement::draggable() const |
276 { | 275 { |
277 // Should be draggable if we have an href attribute. | 276 // Should be draggable if we have an href attribute. |
278 const AtomicString& value = getAttribute(draggableAttr); | 277 const AtomicString& value = getAttribute(draggableAttr); |
279 if (equalIgnoringCase(value, "true")) | 278 if (equalIgnoringCase(value, "true")) |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 preconnectToURL(url, motivation); | 587 preconnectToURL(url, motivation); |
589 m_hasIssuedPreconnect = true; | 588 m_hasIssuedPreconnect = true; |
590 } | 589 } |
591 | 590 |
592 bool HTMLAnchorElement::isInteractiveContent() const | 591 bool HTMLAnchorElement::isInteractiveContent() const |
593 { | 592 { |
594 return isLink(); | 593 return isLink(); |
595 } | 594 } |
596 | 595 |
597 } | 596 } |
OLD | NEW |