From 8573c572fbf5fa68defb3228e7f1450ec234d59b Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sun, 5 Jan 2020 15:31:44 -0500 Subject: Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in CustomElementData. Tag UXP Issue #1344 --- dom/base/Element.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'dom/base/Element.h') 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 -- cgit v1.2.3