From f576d8f0fe2a2203e6ad5fdd1a319b8991322756 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Mon, 20 Jan 2020 19:49:20 -0500 Subject: Bug 1396620 - Part 1: Remove created callback for custom elements Tag UXP Issue #1344 --- dom/base/CustomElementRegistry.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'dom/base/CustomElementRegistry.h') diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h index eb4285fd2..c180a10af 100644 --- a/dom/base/CustomElementRegistry.h +++ b/dom/base/CustomElementRegistry.h @@ -49,8 +49,7 @@ class CustomElementCallback public: CustomElementCallback(Element* aThisObject, nsIDocument::ElementCallbackType aCallbackType, - CallbackFunction* aCallback, - CustomElementData* aOwnerData); + CallbackFunction* aCallback); void Traverse(nsCycleCollectionTraversalCallback& aCb) const; void Call(); void SetArgs(LifecycleCallbackArgs& aArgs) @@ -77,9 +76,6 @@ private: // used by the attribute changed callback. LifecycleCallbackArgs mArgs; LifecycleAdoptedCallbackArgs mAdoptedCallbackArgs; - // CustomElementData that contains this callback in the - // callback queue. - CustomElementData* mOwnerData; }; class CustomElementConstructor final : public CallbackFunction @@ -113,11 +109,6 @@ struct CustomElementData explicit CustomElementData(nsIAtom* aType); CustomElementData(nsIAtom* aType, State aState); - // Element is being created flag as described in the custom elements spec. - bool mElementIsBeingCreated; - // Flag to determine if the created callback has been invoked, thus it - // determines if other callbacks can be enqueued. - bool mCreatedCallbackInvoked; // Custom element state as described in the custom element spec. State mState; // custom element reaction queue as described in the custom element spec. -- cgit v1.2.3