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

Side by Side Diff: sky/engine/core/html/imports/HTMLImportLoader.cpp

Issue 950523002: Delete sky/engine/core/dom/custom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "sky/engine/config.h" 31 #include "sky/engine/config.h"
32 #include "sky/engine/core/html/imports/HTMLImportLoader.h" 32 #include "sky/engine/core/html/imports/HTMLImportLoader.h"
33 33
34 #include "base/bind.h" 34 #include "base/bind.h"
35 #include "sky/engine/core/app/Module.h" 35 #include "sky/engine/core/app/Module.h"
36 #include "sky/engine/core/dom/Document.h" 36 #include "sky/engine/core/dom/Document.h"
37 #include "sky/engine/core/dom/DocumentParser.h" 37 #include "sky/engine/core/dom/DocumentParser.h"
38 #include "sky/engine/core/dom/StyleEngine.h" 38 #include "sky/engine/core/dom/StyleEngine.h"
39 #include "sky/engine/core/dom/custom/CustomElementSyncMicrotaskQueue.h"
40 #include "sky/engine/core/html/imports/HTMLImportChild.h" 39 #include "sky/engine/core/html/imports/HTMLImportChild.h"
41 #include "sky/engine/core/html/imports/HTMLImportsController.h" 40 #include "sky/engine/core/html/imports/HTMLImportsController.h"
42 41
43 namespace blink { 42 namespace blink {
44 43
45 HTMLImportLoader::HTMLImportLoader(HTMLImportsController* controller) 44 HTMLImportLoader::HTMLImportLoader(HTMLImportsController* controller)
46 : m_controller(controller) 45 : m_controller(controller)
47 , m_state(StateLoading) 46 , m_state(StateLoading)
48 , m_microtaskQueue(CustomElementSyncMicrotaskQueue::create())
49 { 47 {
50 } 48 }
51 49
52 HTMLImportLoader::~HTMLImportLoader() 50 HTMLImportLoader::~HTMLImportLoader()
53 { 51 {
54 #if !ENABLE(OILPAN) 52 #if !ENABLE(OILPAN)
55 clear(); 53 clear();
56 #endif 54 #endif
57 } 55 }
58 56
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 ASSERT(kNotFound != m_imports.find(client)); 175 ASSERT(kNotFound != m_imports.find(client));
178 m_imports.remove(m_imports.find(client)); 176 m_imports.remove(m_imports.find(client));
179 } 177 }
180 #endif 178 #endif
181 179
182 bool HTMLImportLoader::shouldBlockScriptExecution() const 180 bool HTMLImportLoader::shouldBlockScriptExecution() const
183 { 181 {
184 return firstImport()->state().shouldBlockScriptExecution(); 182 return firstImport()->state().shouldBlockScriptExecution();
185 } 183 }
186 184
187 PassRefPtr<CustomElementSyncMicrotaskQueue> HTMLImportLoader::microtaskQueue() c onst
188 {
189 return m_microtaskQueue;
190 }
191
192 } // namespace blink 185 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698