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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2279703002: Add a scoped context object for synchronous CE creation (Closed)
Patch Set: Clean up 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/frame/LocalDOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
index 648f98cd1698dae508f35600eeb59d8a310d15f8..b27641e952d7ebc872751687f047575a44197ce5 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
@@ -211,6 +211,9 @@ public:
FloatSize getViewportSize(IncludeScrollbarsInRect) const;
+ void setCustomElementCreationContext(Document*);
+ Document* customElementCreationContext() const;
+
protected:
// EventTarget overrides.
void addedEventListener(const AtomicString& eventType, RegisteredEventListener&) override;
@@ -267,6 +270,8 @@ private:
HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers;
HeapHashSet<WeakMember<EventListenerObserver>> m_eventListenerObservers;
+
+ Member<Document> m_customElementCreationContext = nullptr;
};
DEFINE_TYPE_CASTS(LocalDOMWindow, DOMWindow, x, x->isLocalDOMWindow(), x.isLocalDOMWindow());

Powered by Google App Engine
This is Rietveld 408576698