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
reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 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 * |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include "core/css/StyleSheetContents.h" | 24 #include "core/css/StyleSheetContents.h" |
25 #include "core/dom/Document.h" | 25 #include "core/dom/Document.h" |
26 #include "core/fetch/CSSStyleSheetResource.h" | 26 #include "core/fetch/CSSStyleSheetResource.h" |
27 #include "core/fetch/FetchInitiatorTypeNames.h" | 27 #include "core/fetch/FetchInitiatorTypeNames.h" |
28 #include "core/fetch/FetchRequest.h" | 28 #include "core/fetch/FetchRequest.h" |
29 #include "core/fetch/ResourceFetcher.h" | 29 #include "core/fetch/ResourceFetcher.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 RawPtr<StyleRuleImport> StyleRuleImport::create(const String& href, RawPtr<Media
QuerySet> media) | 33 StyleRuleImport* StyleRuleImport::create(const String& href, MediaQuerySet* medi
a) |
34 { | 34 { |
35 return new StyleRuleImport(href, media); | 35 return new StyleRuleImport(href, media); |
36 } | 36 } |
37 | 37 |
38 StyleRuleImport::StyleRuleImport(const String& href, RawPtr<MediaQuerySet> media
) | 38 StyleRuleImport::StyleRuleImport(const String& href, MediaQuerySet* media) |
39 : StyleRuleBase(Import) | 39 : StyleRuleBase(Import) |
40 , m_parentStyleSheet(nullptr) | 40 , m_parentStyleSheet(nullptr) |
41 , m_styleSheetClient(this) | 41 , m_styleSheetClient(this) |
42 , m_strHref(href) | 42 , m_strHref(href) |
43 , m_mediaQueries(media) | 43 , m_mediaQueries(media) |
44 , m_loading(false) | 44 , m_loading(false) |
45 { | 45 { |
46 if (!m_mediaQueries) | 46 if (!m_mediaQueries) |
47 m_mediaQueries = MediaQuerySet::create(String()); | 47 m_mediaQueries = MediaQuerySet::create(String()); |
48 | 48 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // removed from the pending sheet count, so let the doc know | 145 // removed from the pending sheet count, so let the doc know |
146 // the sheet being imported is pending. | 146 // the sheet being imported is pending. |
147 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && rootShe
et == m_parentStyleSheet) | 147 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && rootShe
et == m_parentStyleSheet) |
148 m_parentStyleSheet->startLoadingDynamicSheet(); | 148 m_parentStyleSheet->startLoadingDynamicSheet(); |
149 m_loading = true; | 149 m_loading = true; |
150 m_resource->addClient(&m_styleSheetClient); | 150 m_resource->addClient(&m_styleSheetClient); |
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 } // namespace blink | 154 } // namespace blink |
OLD | NEW |