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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h

Issue 2200613002: The HTML parser synchronously creates custom elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests for innerHTML. Created 4 years, 4 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CEReactionsScope_h 5 #ifndef CEReactionsScope_h
6 #define CEReactionsScope_h 6 #define CEReactionsScope_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 ~CEReactionsScope() 36 ~CEReactionsScope()
37 { 37 {
38 if (m_frameHost.get()) 38 if (m_frameHost.get())
39 invokeReactions(); 39 invokeReactions();
40 s_topOfStack = s_topOfStack->m_prev; 40 s_topOfStack = s_topOfStack->m_prev;
41 } 41 }
42 42
43 void enqueueToCurrentQueue(Element*, CustomElementReaction*); 43 void enqueueToCurrentQueue(Element*, CustomElementReaction*);
44 bool isEmpty() { return !m_frameHost; }
44 45
45 private: 46 private:
46 static CEReactionsScope* s_topOfStack; 47 static CEReactionsScope* s_topOfStack;
47 48
48 void invokeReactions(); 49 void invokeReactions();
49 50
50 CEReactionsScope* m_prev; 51 CEReactionsScope* m_prev;
51 Member<FrameHost> m_frameHost; 52 Member<FrameHost> m_frameHost;
52 }; 53 };
53 54
54 } // namespace blink 55 } // namespace blink
55 56
56 #endif // CEReactionsScope_h 57 #endif // CEReactionsScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698