Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRuleImport.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/FetchInitiatorTypeNames.h"
28 #include "core/fetch/FetchRequest.h"
29 #include "core/fetch/ResourceFetcher.h"
30 #include "core/loader/resource/CSSStyleSheetResource.h" 27 #include "core/loader/resource/CSSStyleSheetResource.h"
28 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
29 #include "platform/loader/fetch/FetchRequest.h"
30 #include "platform/loader/fetch/ResourceFetcher.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // the sheet being imported is pending. 142 // the sheet being imported is pending.
143 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && 143 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() &&
144 rootSheet == m_parentStyleSheet) 144 rootSheet == m_parentStyleSheet)
145 m_parentStyleSheet->startLoadingDynamicSheet(); 145 m_parentStyleSheet->startLoadingDynamicSheet();
146 m_loading = true; 146 m_loading = true;
147 m_resource->addClient(m_styleSheetClient); 147 m_resource->addClient(m_styleSheetClient);
148 } 148 }
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698