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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp

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
Index: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
index 267fc32ef6da78b0884786b6b16ea4676527ad49..4fa8a29078bb0149b6ddd368d9843a3c75c234e4 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
@@ -12,7 +12,6 @@
#include "core/dom/custom/CustomElementsRegistry.h"
#include "core/dom/custom/V0CustomElement.h"
#include "core/dom/custom/V0CustomElementRegistrationContext.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLUnknownElement.h"
@@ -197,8 +196,7 @@ void CustomElement::enqueue(Element* element, CustomElementReaction* reaction)
// If the custom element reactions stack is empty, then
// Add element to the backup element queue.
- element->document().frameHost()->customElementReactionStack()
- .enqueueToBackupQueue(element, reaction);
+ CustomElementReactionStack::current().enqueueToBackupQueue(element, reaction);
}
void CustomElement::enqueueConnectedCallback(Element* element)

Powered by Google App Engine
This is Rietveld 408576698