| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 | 281 |
| 282 KURL HTMLAnchorElement::href() const | 282 KURL HTMLAnchorElement::href() const |
| 283 { | 283 { |
| 284 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute
(hrefAttr))); | 284 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute
(hrefAttr))); |
| 285 } | 285 } |
| 286 | 286 |
| 287 void HTMLAnchorElement::setHref(const AtomicString& value) | 287 void HTMLAnchorElement::setHref(const AtomicString& value) |
| 288 { | 288 { |
| 289 setAttribute(hrefAttr, value); | 289 setAttribute(hrefAttr, value); |
| 290 DOMURLUtils::update(); |
| 290 } | 291 } |
| 291 | 292 |
| 292 KURL HTMLAnchorElement::url() const | 293 KURL HTMLAnchorElement::url() const |
| 293 { | 294 { |
| 294 return href(); | 295 return href(); |
| 295 } | 296 } |
| 296 | 297 |
| 297 void HTMLAnchorElement::setURL(const KURL& url) | 298 void HTMLAnchorElement::setURL(const KURL& url) |
| 298 { | 299 { |
| 299 setHref(AtomicString(url.string())); | 300 setHref(AtomicString(url.string())); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 } | 581 } |
| 581 | 582 |
| 582 bool HTMLAnchorElement::isInteractiveContent() const | 583 bool HTMLAnchorElement::isInteractiveContent() const |
| 583 { | 584 { |
| 584 return isLink(); | 585 return isLink(); |
| 585 } | 586 } |
| 586 | 587 |
| 587 void HTMLAnchorElement::trace(Visitor* visitor) | 588 void HTMLAnchorElement::trace(Visitor* visitor) |
| 588 { | 589 { |
| 589 visitor->trace(m_prefetchEventHandler); | 590 visitor->trace(m_prefetchEventHandler); |
| 591 DOMURLUtils::trace(visitor); |
| 590 HTMLElement::trace(visitor); | 592 HTMLElement::trace(visitor); |
| 591 } | 593 } |
| 592 | 594 |
| 593 } | 595 } |
| OLD | NEW |