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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 return static_cast<LinkStyle*>(m_link.get()); | 167 return static_cast<LinkStyle*>(m_link.get()); |
168 } | 168 } |
169 | 169 |
170 LinkImport* HTMLLinkElement::linkImport() const | 170 LinkImport* HTMLLinkElement::linkImport() const |
171 { | 171 { |
172 if (!m_link || m_link->type() != LinkResource::Import) | 172 if (!m_link || m_link->type() != LinkResource::Import) |
173 return 0; | 173 return 0; |
174 return static_cast<LinkImport*>(m_link.get()); | 174 return static_cast<LinkImport*>(m_link.get()); |
175 } | 175 } |
176 | 176 |
| 177 bool HTMLLinkElement::importOwnsLoader() const |
| 178 { |
| 179 LinkImport* import = linkImport(); |
| 180 if (!import) |
| 181 return false; |
| 182 return import->ownsLoader(); |
| 183 } |
| 184 |
177 Document* HTMLLinkElement::import() const | 185 Document* HTMLLinkElement::import() const |
178 { | 186 { |
179 if (LinkImport* link = linkImport()) | 187 if (LinkImport* link = linkImport()) |
180 return link->importedDocument(); | 188 return link->importedDocument(); |
181 return 0; | 189 return 0; |
182 } | 190 } |
183 | 191 |
184 void HTMLLinkElement::process() | 192 void HTMLLinkElement::process() |
185 { | 193 { |
186 if (LinkResource* link = linkResourceToProcess()) | 194 if (LinkResource* link = linkResourceToProcess()) |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 void LinkStyle::ownerRemoved() | 614 void LinkStyle::ownerRemoved() |
607 { | 615 { |
608 if (m_sheet) | 616 if (m_sheet) |
609 clearSheet(); | 617 clearSheet(); |
610 | 618 |
611 if (styleSheetIsLoading()) | 619 if (styleSheetIsLoading()) |
612 removePendingSheet(RemovePendingSheetNotifyLater); | 620 removePendingSheet(RemovePendingSheetNotifyLater); |
613 } | 621 } |
614 | 622 |
615 } // namespace WebCore | 623 } // namespace WebCore |
OLD | NEW |