| 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 | 5  * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 
| 6  * reserved. | 6  * reserved. | 
| 7  * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 7  * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 
| 8  * Copyright (C) 2011 Google Inc. All rights reserved. | 8  * Copyright (C) 2011 Google Inc. All rights reserved. | 
| 9  * | 9  * | 
| 10  * This library is free software; you can redistribute it and/or | 10  * This library is free software; you can redistribute it and/or | 
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 315   return attribute.GetName().LocalName() == hrefAttr || | 315   return attribute.GetName().LocalName() == hrefAttr || | 
| 316          HTMLElement::IsURLAttribute(attribute); | 316          HTMLElement::IsURLAttribute(attribute); | 
| 317 } | 317 } | 
| 318 | 318 | 
| 319 bool HTMLLinkElement::HasLegalLinkAttribute(const QualifiedName& name) const { | 319 bool HTMLLinkElement::HasLegalLinkAttribute(const QualifiedName& name) const { | 
| 320   return name == hrefAttr || HTMLElement::HasLegalLinkAttribute(name); | 320   return name == hrefAttr || HTMLElement::HasLegalLinkAttribute(name); | 
| 321 } | 321 } | 
| 322 | 322 | 
| 323 const QualifiedName& HTMLLinkElement::SubResourceAttributeName() const { | 323 const QualifiedName& HTMLLinkElement::SubResourceAttributeName() const { | 
| 324   // If the link element is not css, ignore it. | 324   // If the link element is not css, ignore it. | 
| 325   if (EqualIgnoringCase(getAttribute(typeAttr), "text/css")) { | 325   if (DeprecatedEqualIgnoringCase(getAttribute(typeAttr), "text/css")) { | 
| 326     // FIXME: Add support for extracting links of sub-resources which | 326     // FIXME: Add support for extracting links of sub-resources which | 
| 327     // are inside style-sheet such as @import, @font-face, url(), etc. | 327     // are inside style-sheet such as @import, @font-face, url(), etc. | 
| 328     return hrefAttr; | 328     return hrefAttr; | 
| 329   } | 329   } | 
| 330   return HTMLElement::SubResourceAttributeName(); | 330   return HTMLElement::SubResourceAttributeName(); | 
| 331 } | 331 } | 
| 332 | 332 | 
| 333 KURL HTMLLinkElement::Href() const { | 333 KURL HTMLLinkElement::Href() const { | 
| 334   const String& url = getAttribute(hrefAttr); | 334   const String& url = getAttribute(hrefAttr); | 
| 335   if (url.IsEmpty()) | 335   if (url.IsEmpty()) | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 370   LinkLoaderClient::Trace(visitor); | 370   LinkLoaderClient::Trace(visitor); | 
| 371   DOMTokenListObserver::Trace(visitor); | 371   DOMTokenListObserver::Trace(visitor); | 
| 372 } | 372 } | 
| 373 | 373 | 
| 374 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 374 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 
| 375   visitor->TraceWrappers(rel_list_); | 375   visitor->TraceWrappers(rel_list_); | 
| 376   HTMLElement::TraceWrappers(visitor); | 376   HTMLElement::TraceWrappers(visitor); | 
| 377 } | 377 } | 
| 378 | 378 | 
| 379 }  // namespace blink | 379 }  // namespace blink | 
| OLD | NEW | 
|---|