OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights |
5 * reserved. | 5 * reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
11 * | 11 * |
12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
21 */ | 21 */ |
22 | 22 |
23 #include "core/css/StyleRuleImport.h" | 23 #include "core/css/StyleRuleImport.h" |
24 | 24 |
25 #include "core/css/StyleSheetContents.h" | 25 #include "core/css/StyleSheetContents.h" |
26 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
27 #include "core/fetch/CSSStyleSheetResource.h" | |
28 #include "core/fetch/FetchInitiatorTypeNames.h" | 27 #include "core/fetch/FetchInitiatorTypeNames.h" |
29 #include "core/fetch/FetchRequest.h" | 28 #include "core/fetch/FetchRequest.h" |
30 #include "core/fetch/ResourceFetcher.h" | 29 #include "core/fetch/ResourceFetcher.h" |
| 30 #include "core/loader/resource/CSSStyleSheetResource.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 StyleRuleImport* StyleRuleImport::create(const String& href, | 34 StyleRuleImport* StyleRuleImport::create(const String& href, |
35 MediaQuerySet* media) { | 35 MediaQuerySet* media) { |
36 return new StyleRuleImport(href, media); | 36 return new StyleRuleImport(href, media); |
37 } | 37 } |
38 | 38 |
39 StyleRuleImport::StyleRuleImport(const String& href, MediaQuerySet* media) | 39 StyleRuleImport::StyleRuleImport(const String& href, MediaQuerySet* media) |
40 : StyleRuleBase(Import), | 40 : StyleRuleBase(Import), |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // the sheet being imported is pending. | 144 // the sheet being imported is pending. |
145 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && | 145 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && |
146 rootSheet == m_parentStyleSheet) | 146 rootSheet == m_parentStyleSheet) |
147 m_parentStyleSheet->startLoadingDynamicSheet(); | 147 m_parentStyleSheet->startLoadingDynamicSheet(); |
148 m_loading = true; | 148 m_loading = true; |
149 m_resource->addClient(m_styleSheetClient); | 149 m_resource->addClient(m_styleSheetClient); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
OLD | NEW |