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

Side by Side Diff: Source/core/dom/custom/CustomElementMicrotaskDispatcher.h

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, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CustomElementMicrotaskDispatcher_h 5 #ifndef CustomElementMicrotaskDispatcher_h
6 #define CustomElementMicrotaskDispatcher_h 6 #define CustomElementMicrotaskDispatcher_h
7 7
8 #include "core/dom/custom/CustomElementMicrotaskQueue.h" 8 #include "core/dom/custom/CustomElementMicrotaskQueue.h"
9 #include "wtf/Noncopyable.h" 9 #include "wtf/Noncopyable.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 13 matching lines...) Expand all
24 24
25 static CustomElementMicrotaskDispatcher& instance(); 25 static CustomElementMicrotaskDispatcher& instance();
26 26
27 void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskStep>); 27 void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskStep>);
28 void enqueue(CustomElementCallbackQueue*); 28 void enqueue(CustomElementCallbackQueue*);
29 29
30 void importDidFinish(CustomElementMicrotaskImportStep*); 30 void importDidFinish(CustomElementMicrotaskImportStep*);
31 31
32 bool elementQueueIsEmpty() { return m_elements.isEmpty(); } 32 bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
33 33
34 #if !defined(NDEBUG)
35 void show();
36 #endif
37
34 private: 38 private:
35 CustomElementMicrotaskDispatcher(); 39 CustomElementMicrotaskDispatcher();
36 40
37 void ensureMicrotaskScheduled(); 41 void ensureMicrotaskScheduled();
38 42
39 static void dispatch(); 43 static void dispatch();
40 void doDispatch(); 44 void doDispatch();
41 45
42 bool m_hasScheduledMicrotask; 46 bool m_hasScheduledMicrotask;
43 enum { 47 enum {
44 Quiescent, 48 Quiescent,
45 Resolving, 49 Resolving,
46 DispatchingCallbacks 50 DispatchingCallbacks
47 } m_phase; 51 } m_phase;
48 52
49 RefPtr<CustomElementMicrotaskQueue> m_resolutionAndImports; 53 RefPtr<CustomElementMicrotaskQueue> m_resolutionAndImports;
50 Vector<CustomElementCallbackQueue*> m_elements; 54 Vector<CustomElementCallbackQueue*> m_elements;
51 }; 55 };
52 56
53 } 57 }
54 58
55 #endif // CustomElementMicrotaskDispatcher_h 59 #endif // CustomElementMicrotaskDispatcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698