diff options
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 e7218ee93..782004703 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 |