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