| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@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 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
| 7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 { | 320 { |
| 321 ASSERT(linkStyle()); | 321 ASSERT(linkStyle()); |
| 322 linkStyle()->startLoadingDynamicSheet(); | 322 linkStyle()->startLoadingDynamicSheet(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 bool HTMLLinkElement::isURLAttribute(const Attribute& attribute) const | 325 bool HTMLLinkElement::isURLAttribute(const Attribute& attribute) const |
| 326 { | 326 { |
| 327 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); | 327 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu
te(attribute); |
| 328 } | 328 } |
| 329 | 329 |
| 330 bool HTMLLinkElement::hasLegalLinkAttribute(const QualifiedName& name) const |
| 331 { |
| 332 return name == hrefAttr || HTMLElement::hasLegalLinkAttribute(name); |
| 333 } |
| 334 |
| 330 KURL HTMLLinkElement::href() const | 335 KURL HTMLLinkElement::href() const |
| 331 { | 336 { |
| 332 return document().completeURL(getAttribute(hrefAttr)); | 337 return document().completeURL(getAttribute(hrefAttr)); |
| 333 } | 338 } |
| 334 | 339 |
| 335 const AtomicString& HTMLLinkElement::rel() const | 340 const AtomicString& HTMLLinkElement::rel() const |
| 336 { | 341 { |
| 337 return getAttribute(relAttr); | 342 return getAttribute(relAttr); |
| 338 } | 343 } |
| 339 | 344 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 void LinkStyle::ownerRemoved() | 636 void LinkStyle::ownerRemoved() |
| 632 { | 637 { |
| 633 if (m_sheet) | 638 if (m_sheet) |
| 634 clearSheet(); | 639 clearSheet(); |
| 635 | 640 |
| 636 if (styleSheetIsLoading()) | 641 if (styleSheetIsLoading()) |
| 637 removePendingSheet(RemovePendingSheetNotifyLater); | 642 removePendingSheet(RemovePendingSheetNotifyLater); |
| 638 } | 643 } |
| 639 | 644 |
| 640 } // namespace WebCore | 645 } // namespace WebCore |
| OLD | NEW |