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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 KURL HTMLAnchorElement::href() const | 242 KURL HTMLAnchorElement::href() const |
243 { | 243 { |
244 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute
(hrefAttr))); | 244 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(getAttribute
(hrefAttr))); |
245 } | 245 } |
246 | 246 |
247 void HTMLAnchorElement::setHref(const AtomicString& value) | 247 void HTMLAnchorElement::setHref(const AtomicString& value) |
248 { | 248 { |
249 setAttribute(hrefAttr, value); | 249 setAttribute(hrefAttr, value); |
| 250 DOMURLUtils::update(); |
250 } | 251 } |
251 | 252 |
252 KURL HTMLAnchorElement::url() const | 253 KURL HTMLAnchorElement::url() const |
253 { | 254 { |
254 return href(); | 255 return href(); |
255 } | 256 } |
256 | 257 |
257 void HTMLAnchorElement::setURL(const KURL& url) | 258 void HTMLAnchorElement::setURL(const KURL& url) |
258 { | 259 { |
259 setHref(AtomicString(url.string())); | 260 setHref(AtomicString(url.string())); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 if (activityLogger) { | 380 if (activityLogger) { |
380 Vector<String> argv; | 381 Vector<String> argv; |
381 argv.append("a"); | 382 argv.append("a"); |
382 argv.append(fastGetAttribute(hrefAttr)); | 383 argv.append(fastGetAttribute(hrefAttr)); |
383 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); | 384 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); |
384 } | 385 } |
385 } | 386 } |
386 return HTMLElement::insertedInto(insertionPoint); | 387 return HTMLElement::insertedInto(insertionPoint); |
387 } | 388 } |
388 | 389 |
| 390 void HTMLAnchorElement::trace(Visitor* visitor) |
| 391 { |
| 392 DOMURLUtils::trace(visitor); |
| 393 HTMLElement::trace(visitor); |
389 } | 394 } |
| 395 |
| 396 } |
OLD | NEW |