diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 19:48:30 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:18 -0500 |
commit | cc533eaee5b800a534b93484598779debcdf5591 (patch) | |
tree | f4613faeda690275556065ad825c1c249e155afe /dom/base/Element.h | |
parent | 59c26110c1124844b5c6820573a8cb4807f1151a (diff) | |
download | UXP-cc533eaee5b800a534b93484598779debcdf5591.tar UXP-cc533eaee5b800a534b93484598779debcdf5591.tar.gz UXP-cc533eaee5b800a534b93484598779debcdf5591.tar.lz UXP-cc533eaee5b800a534b93484598779debcdf5591.tar.xz UXP-cc533eaee5b800a534b93484598779debcdf5591.zip |
Bug 1377993 - Make node slots less memory hungry in common cases.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r-- | dom/base/Element.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h index 6d8bc823e..e7218ee93 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -398,7 +398,7 @@ public: */ inline CustomElementData* GetCustomElementData() const { - nsDOMSlots *slots = GetExistingDOMSlots(); + nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots(); if (slots) { return slots->mCustomElementData; } @@ -837,7 +837,7 @@ public: ShadowRoot *FastGetShadowRoot() const { - nsDOMSlots* slots = GetExistingDOMSlots(); + nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots(); return slots ? slots->mShadowRoot.get() : nullptr; } |