summaryrefslogtreecommitdiffstats
path: root/dom/html/nsGenericHTMLElement.cpp
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2020-01-26 17:13:16 -0500
committerGitHub <noreply@github.com>2020-01-26 17:13:16 -0500
commit22ed46f7cca6d388e7e9e2bf53851ab488cc62ab (patch)
treefb5b7a509abe61a05bf6f3f88371271be4e5ccaa /dom/html/nsGenericHTMLElement.cpp
parenta1cce3b2b00bbd9f4983013ddd8934a7bccb9e99 (diff)
parent3c70b297c7be12b7d7e120de04a38f40b600928b (diff)
downloadUXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.gz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.lz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.xz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.zip
Merge pull request #1374 from g4jc/custom_elementsv1
Custom Elements v1
Diffstat (limited to 'dom/html/nsGenericHTMLElement.cpp')
-rw-r--r--dom/html/nsGenericHTMLElement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp
index 2f890325a..cbf97f1ea 100644
--- a/dom/html/nsGenericHTMLElement.cpp
+++ b/dom/html/nsGenericHTMLElement.cpp
@@ -497,7 +497,7 @@ nsGenericHTMLElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
// We need to consider a labels element is moved to another subtree
// with different root, it needs to update labels list and its root
// as well.
- nsDOMSlots* slots = GetExistingDOMSlots();
+ nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots();
if (slots && slots->mLabelsList) {
slots->mLabelsList->MaybeResetRoot(SubtreeRoot());
}
@@ -524,7 +524,7 @@ nsGenericHTMLElement::UnbindFromTree(bool aDeep, bool aNullParent)
// We need to consider a labels element is removed from tree,
// it needs to update labels list and its root as well.
- nsDOMSlots* slots = GetExistingDOMSlots();
+ nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots();
if (slots && slots->mLabelsList) {
slots->mLabelsList->MaybeResetRoot(SubtreeRoot());
}
@@ -1730,7 +1730,7 @@ nsGenericHTMLElement::Labels()
{
MOZ_ASSERT(IsLabelable(),
"Labels() only allow labelable elements to use it.");
- nsDOMSlots* slots = DOMSlots();
+ nsExtendedDOMSlots* slots = ExtendedDOMSlots();
if (!slots->mLabelsList) {
slots->mLabelsList = new nsLabelsNodeList(SubtreeRoot(), MatchLabelsElement,