| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 LinkResource* HTMLLinkElement::linkResourceToProcess() | 203 LinkResource* HTMLLinkElement::linkResourceToProcess() |
| 204 { | 204 { |
| 205 bool visible = inDocument() && !m_isInShadowTree; | 205 bool visible = inDocument() && !m_isInShadowTree; |
| 206 if (!visible) { | 206 if (!visible) { |
| 207 ASSERT(!linkStyle() || !linkStyle()->hasSheet()); | 207 ASSERT(!linkStyle() || !linkStyle()->hasSheet()); |
| 208 return 0; | 208 return 0; |
| 209 } | 209 } |
| 210 | 210 |
| 211 if (!m_link) { | 211 if (!m_link) { |
| 212 if (m_relAttribute.isImport() && RuntimeEnabledFeatures::htmlImportsEnab
led()) { | 212 if (m_relAttribute.isImport()) { |
| 213 m_link = LinkImport::create(this); | 213 m_link = LinkImport::create(this); |
| 214 } else if (m_relAttribute.isManifest() && RuntimeEnabledFeatures::manife
stEnabled()) { | 214 } else if (m_relAttribute.isManifest() && RuntimeEnabledFeatures::manife
stEnabled()) { |
| 215 m_link = LinkManifest::create(this); | 215 m_link = LinkManifest::create(this); |
| 216 } else { | 216 } else { |
| 217 OwnPtrWillBeRawPtr<LinkStyle> link = LinkStyle::create(this); | 217 OwnPtrWillBeRawPtr<LinkStyle> link = LinkStyle::create(this); |
| 218 if (fastHasAttribute(disabledAttr) || m_relAttribute.isTransitionExi
tingStylesheet()) | 218 if (fastHasAttribute(disabledAttr) || m_relAttribute.isTransitionExi
tingStylesheet()) |
| 219 link->setDisabledState(true); | 219 link->setDisabledState(true); |
| 220 m_link = link.release(); | 220 m_link = link.release(); |
| 221 } | 221 } |
| 222 } | 222 } |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 removePendingSheet(); | 739 removePendingSheet(); |
| 740 } | 740 } |
| 741 | 741 |
| 742 void LinkStyle::trace(Visitor* visitor) | 742 void LinkStyle::trace(Visitor* visitor) |
| 743 { | 743 { |
| 744 visitor->trace(m_sheet); | 744 visitor->trace(m_sheet); |
| 745 LinkResource::trace(visitor); | 745 LinkResource::trace(visitor); |
| 746 } | 746 } |
| 747 | 747 |
| 748 } // namespace blink | 748 } // namespace blink |
| OLD | NEW |