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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv
ents); | 296 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv
ents); |
297 } | 297 } |
298 | 298 |
299 bool HTMLAnchorElement::isURLAttribute(const Attribute& attribute) const | 299 bool HTMLAnchorElement::isURLAttribute(const Attribute& attribute) const |
300 { | 300 { |
301 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); | 301 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); |
302 } | 302 } |
303 | 303 |
304 bool HTMLAnchorElement::canStartSelection() const | 304 bool HTMLAnchorElement::canStartSelection() const |
305 { | 305 { |
306 // FIXME: We probably want this same behavior in SVGAElement too | |
307 if (!isLink()) | 306 if (!isLink()) |
308 return HTMLElement::canStartSelection(); | 307 return HTMLElement::canStartSelection(); |
309 return rendererIsEditable(); | 308 return rendererIsEditable(); |
310 } | 309 } |
311 | 310 |
312 bool HTMLAnchorElement::draggable() const | 311 bool HTMLAnchorElement::draggable() const |
313 { | 312 { |
314 // Should be draggable if we have an href attribute. | 313 // Should be draggable if we have an href attribute. |
315 const AtomicString& value = getAttribute(draggableAttr); | 314 const AtomicString& value = getAttribute(draggableAttr); |
316 if (equalIgnoringCase(value, "true")) | 315 if (equalIgnoringCase(value, "true")) |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 preconnectToURL(url, motivation); | 692 preconnectToURL(url, motivation); |
694 m_hasIssuedPreconnect = true; | 693 m_hasIssuedPreconnect = true; |
695 } | 694 } |
696 | 695 |
697 bool HTMLAnchorElement::isInteractiveContent() const | 696 bool HTMLAnchorElement::isInteractiveContent() const |
698 { | 697 { |
699 return isLink(); | 698 return isLink(); |
700 } | 699 } |
701 | 700 |
702 } | 701 } |
OLD | NEW |