diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 15:31:44 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:27 -0500 |
commit | 8573c572fbf5fa68defb3228e7f1450ec234d59b (patch) | |
tree | 97c6eefe6718d62d901155eca3badbfec67eebb0 /dom/base/Element.h | |
parent | f50503df9c2eced785957626273ee07e5312d546 (diff) | |
download | uxp-8573c572fbf5fa68defb3228e7f1450ec234d59b.tar.gz |
Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in CustomElementData.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r-- | dom/base/Element.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h index e7218ee931..7820047034 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -413,6 +413,22 @@ public: */ void SetCustomElementData(CustomElementData* aData); + /** + * Gets the custom element definition used by web components custom element. + * + * @return The custom element definition or null if element is not a custom + * element or custom element is not defined yet. + */ + CustomElementDefinition* GetCustomElementDefinition() const; + + /** + * Sets the custom element definition, called when custom element is created + * or upgraded. + * + * @param aDefinition The custom element definition. + */ + void SetCustomElementDefinition(CustomElementDefinition* aDefinition); + protected: /** * Method to get the _intrinsic_ content state of this element. This is the |