| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the XSL implementation. | 2 * This file is part of the XSL implementation. |
| 3 * | 3 * |
| 4 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "XSLImportRule.h" | 23 #include "XSLImportRule.h" |
| 24 | 24 |
| 25 #include "CachedXSLStyleSheet.h" | |
| 26 #include "CachedResourceLoader.h" | |
| 27 #include "CachedResourceRequest.h" | |
| 28 #include "Document.h" | 25 #include "Document.h" |
| 29 #include "XSLStyleSheet.h" | 26 #include "XSLStyleSheet.h" |
| 27 #include "core/loader/cache/CachedResourceLoader.h" |
| 28 #include "core/loader/cache/CachedResourceRequest.h" |
| 29 #include "core/loader/cache/CachedXSLStyleSheet.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 XSLImportRule::XSLImportRule(XSLStyleSheet* parent, const String& href) | 33 XSLImportRule::XSLImportRule(XSLStyleSheet* parent, const String& href) |
| 34 : m_parentStyleSheet(parent) | 34 : m_parentStyleSheet(parent) |
| 35 , m_strHref(href) | 35 , m_strHref(href) |
| 36 , m_cachedSheet(0) | 36 , m_cachedSheet(0) |
| 37 , m_loading(false) | 37 , m_loading(false) |
| 38 { | 38 { |
| 39 } | 39 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // If the imported sheet is in the cache, then setXSLStyleSheet gets cal
led, | 106 // If the imported sheet is in the cache, then setXSLStyleSheet gets cal
led, |
| 107 // and the sheet even gets parsed (via parseString). In this case we ha
ve | 107 // and the sheet even gets parsed (via parseString). In this case we ha
ve |
| 108 // loaded (even if our subresources haven't), so if we have a stylesheet
after | 108 // loaded (even if our subresources haven't), so if we have a stylesheet
after |
| 109 // checking the cache, then we've clearly loaded. | 109 // checking the cache, then we've clearly loaded. |
| 110 if (!m_styleSheet) | 110 if (!m_styleSheet) |
| 111 m_loading = true; | 111 m_loading = true; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace WebCore | 115 } // namespace WebCore |
| OLD | NEW |