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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } else if (name == scopeAttr) { | 92 } else if (name == scopeAttr) { |
93 m_scope = value; | 93 m_scope = value; |
94 process(); | 94 process(); |
95 } else if (name == disabledAttr) { | 95 } else if (name == disabledAttr) { |
96 UseCounter::count(document(), UseCounter::HTMLLinkElementDisabled); | 96 UseCounter::count(document(), UseCounter::HTMLLinkElementDisabled); |
97 if (LinkStyle* link = linkStyle()) | 97 if (LinkStyle* link = linkStyle()) |
98 link->setDisabledState(!value.isNull()); | 98 link->setDisabledState(!value.isNull()); |
99 } else { | 99 } else { |
100 if (name == titleAttr) { | 100 if (name == titleAttr) { |
101 if (LinkStyle* link = linkStyle()) | 101 if (LinkStyle* link = linkStyle()) |
102 link->setSheetTitle(value, StyleEngine::UpdateActiveSheets); | 102 link->setSheetTitle(value); |
103 } | 103 } |
104 | 104 |
105 HTMLElement::parseAttribute(name, oldValue, value); | 105 HTMLElement::parseAttribute(name, oldValue, value); |
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 bool HTMLLinkElement::shouldLoadLink() { | 109 bool HTMLLinkElement::shouldLoadLink() { |
110 return isInDocumentTree() || (isConnected() && m_relAttribute.isStyleSheet()); | 110 return isInDocumentTree() || (isConnected() && m_relAttribute.isStyleSheet()); |
111 } | 111 } |
112 | 112 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 LinkLoaderClient::trace(visitor); | 363 LinkLoaderClient::trace(visitor); |
364 DOMTokenListObserver::trace(visitor); | 364 DOMTokenListObserver::trace(visitor); |
365 } | 365 } |
366 | 366 |
367 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 367 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { |
368 visitor->traceWrappers(m_relList); | 368 visitor->traceWrappers(m_relList); |
369 HTMLElement::traceWrappers(visitor); | 369 HTMLElement::traceWrappers(visitor); |
370 } | 370 } |
371 | 371 |
372 } // namespace blink | 372 } // namespace blink |
OLD | NEW |