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 "core/xml/XSLImportRule.h" | 23 #include "core/xml/XSLImportRule.h" |
24 | 24 |
25 #include "FetchInitiatorTypeNames.h" | 25 #include "FetchInitiatorTypeNames.h" |
26 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
27 #include "core/fetch/FetchRequest.h" | 27 #include "core/fetch/FetchRequest.h" |
28 #include "core/fetch/ResourceFetcher.h" | 28 #include "core/fetch/ResourceFetcher.h" |
29 #include "core/fetch/XSLStyleSheetResource.h" | 29 #include "core/fetch/XSLStyleSheetResource.h" |
30 #include "core/xml/XSLStyleSheet.h" | |
31 | 30 |
32 namespace WebCore { | 31 namespace WebCore { |
33 | 32 |
34 XSLImportRule::XSLImportRule(XSLStyleSheet* parent, const String& href) | 33 XSLImportRule::XSLImportRule(XSLStyleSheet* parent, const String& href) |
35 : m_parentStyleSheet(parent) | 34 : m_parentStyleSheet(parent) |
36 , m_strHref(href) | 35 , m_strHref(href) |
37 , m_resource(0) | 36 , m_resource(0) |
38 , m_loading(false) | 37 , m_loading(false) |
39 { | 38 { |
40 } | 39 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // 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, |
108 // 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 |
109 // 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 |
110 // checking the cache, then we've clearly loaded. | 109 // checking the cache, then we've clearly loaded. |
111 if (!m_styleSheet) | 110 if (!m_styleSheet) |
112 m_loading = true; | 111 m_loading = true; |
113 } | 112 } |
114 } | 113 } |
115 | 114 |
116 } // namespace WebCore | 115 } // namespace WebCore |
OLD | NEW |