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

Side by Side Diff: Source/core/html/imports/HTMLImportLoader.cpp

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 28 matching lines...) Expand all
39 #include "core/html/imports/HTMLImportsController.h" 39 #include "core/html/imports/HTMLImportsController.h"
40 #include "core/loader/DocumentWriter.h" 40 #include "core/loader/DocumentWriter.h"
41 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" 41 #include "platform/network/ContentSecurityPolicyResponseHeaders.h"
42 42
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 HTMLImportLoader::HTMLImportLoader(HTMLImportsController* controller) 46 HTMLImportLoader::HTMLImportLoader(HTMLImportsController* controller)
47 : m_controller(controller) 47 : m_controller(controller)
48 , m_state(StateLoading) 48 , m_state(StateLoading)
49 , m_microtaskQueue(CustomElementMicrotaskQueue::create())
50 { 49 {
51 } 50 }
52 51
53 HTMLImportLoader::~HTMLImportLoader() 52 HTMLImportLoader::~HTMLImportLoader()
54 { 53 {
55 clear(); 54 clear();
56 } 55 }
57 56
58 void HTMLImportLoader::importDestroyed() 57 void HTMLImportLoader::importDestroyed()
59 { 58 {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 215 }
217 216
218 return true; 217 return true;
219 } 218 }
220 219
221 PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::microtaskQueue() const 220 PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::microtaskQueue() const
222 { 221 {
223 return m_microtaskQueue; 222 return m_microtaskQueue;
224 } 223 }
225 224
225 PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::ensureMicrotaskQueue()
226 {
227 if (!m_microtaskQueue)
228 m_microtaskQueue = CustomElementMicrotaskQueue::create();
229 return m_microtaskQueue;
230 }
231
226 } // namespace WebCore 232 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698