diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 19:48:05 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:17 -0500 |
commit | 59c26110c1124844b5c6820573a8cb4807f1151a (patch) | |
tree | 5ac0f001cc097235e5e44c4c16fa9ab120c9b76d /dom/base/Element.cpp | |
parent | a2c7b5f1d971cd529e65179ad97d39750e956644 (diff) | |
download | uxp-59c26110c1124844b5c6820573a8cb4807f1151a.tar.gz |
Bug 1347634 - GetCustomElementData and SetCustomElementData don't need to be virtual;
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/Element.cpp')
-rw-r--r-- | dom/base/Element.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 0054f48006..7d926f6bbc 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -4037,3 +4037,11 @@ Element::UpdateIntersectionObservation(DOMIntersectionObserver* aObserver, int32 } return false; } + +void +Element::SetCustomElementData(CustomElementData* aData) +{ + nsDOMSlots *slots = DOMSlots(); + MOZ_ASSERT(!slots->mCustomElementData, "Custom element data may not be changed once set."); + slots->mCustomElementData = aData; +} |