From 32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sun, 5 Jan 2020 10:26:29 -0500 Subject: Bug 1299363 - Part 1: Implement construction stack. Tag UXP Issue #1344 --- dom/base/CustomElementRegistry.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dom/base/CustomElementRegistry.h') diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h index 33f2a95ff..84a7fe3ac 100644 --- a/dom/base/CustomElementRegistry.h +++ b/dom/base/CustomElementRegistry.h @@ -106,6 +106,8 @@ private: virtual ~CustomElementData() {} }; +#define ALEADY_CONSTRUCTED_MARKER nullptr + // The required information for a custom element as defined in: // https://html.spec.whatwg.org/multipage/scripting.html#custom-element-definition struct CustomElementDefinition @@ -132,8 +134,8 @@ struct CustomElementDefinition // The lifecycle callbacks to call for this custom element. UniquePtr mCallbacks; - // A construction stack. - // TODO: Bug 1287348 - Implement construction stack for upgrading an element + // A construction stack. Use nullptr to represent an "already constructed marker". + nsTArray> mConstructionStack; // The document custom element order. uint32_t mDocOrder; -- cgit v1.2.3