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

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

Issue 2214263003: CustomElements: taking CustomElementReactionStack out of frameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
index 5a093585af1e7be070f11e68211c2733a5f6d764..4156a4531abf3582b300872302f573ca9075af67 100644
--- a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
+++ b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.h
@@ -15,7 +15,6 @@ namespace blink {
class CustomElementReaction;
class Element;
-class FrameHost;
// https://html.spec.whatwg.org/multipage/scripting.html#cereactions
class CORE_EXPORT CEReactionsScope final {
@@ -29,13 +28,14 @@ public:
CEReactionsScope()
: m_prev(s_topOfStack)
+ , m_workToDo(false)
{
s_topOfStack = this;
}
~CEReactionsScope()
{
- if (m_frameHost.get())
+ if (m_workToDo)
invokeReactions();
s_topOfStack = s_topOfStack->m_prev;
}
@@ -48,7 +48,7 @@ private:
void invokeReactions();
CEReactionsScope* m_prev;
- Member<FrameHost> m_frameHost;
+ bool m_workToDo;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698