diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 10:26:29 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:22 -0500 |
commit | 32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed (patch) | |
tree | 97eb8652cf43caa495e8999e2876a1745f1b30ea /dom/base | |
parent | 53c9b77ed41aebb157012eff5e57cad3a962d18e (diff) | |
download | UXP-32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed.tar UXP-32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed.tar.gz UXP-32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed.tar.lz UXP-32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed.tar.xz UXP-32f1ff0f8d3bf009f4e7b57dc75e86b5220f86ed.zip |
Bug 1299363 - Part 1: Implement construction stack.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/CustomElementRegistry.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<mozilla::dom::LifecycleCallbacks> 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<RefPtr<nsGenericHTMLElement>> mConstructionStack; // The document custom element order. uint32_t mDocOrder; |