summaryrefslogtreecommitdiffstats
path: root/dom/bindings/BindingUtils.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-05 15:31:44 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:27 -0500
commit8573c572fbf5fa68defb3228e7f1450ec234d59b (patch)
tree97c6eefe6718d62d901155eca3badbfec67eebb0 /dom/bindings/BindingUtils.cpp
parentf50503df9c2eced785957626273ee07e5312d546 (diff)
downloadUXP-8573c572fbf5fa68defb3228e7f1450ec234d59b.tar
UXP-8573c572fbf5fa68defb3228e7f1450ec234d59b.tar.gz
UXP-8573c572fbf5fa68defb3228e7f1450ec234d59b.tar.lz
UXP-8573c572fbf5fa68defb3228e7f1450ec234d59b.tar.xz
UXP-8573c572fbf5fa68defb3228e7f1450ec234d59b.zip
Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in CustomElementData.
Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings/BindingUtils.cpp')
-rw-r--r--dom/bindings/BindingUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp
index 3c31ec0e6..f76f14d95 100644
--- a/dom/bindings/BindingUtils.cpp
+++ b/dom/bindings/BindingUtils.cpp
@@ -3554,6 +3554,8 @@ CreateHTMLElement(const GlobalObject& aGlobal, const JS::CallArgs& aCallArgs,
newElement->SetCustomElementData(
new CustomElementData(definition->mType, CustomElementData::State::eCustom));
+ newElement->SetCustomElementDefinition(definition);
+
return newElement.forget();
}