summaryrefslogtreecommitdiffstats
path: root/dom/base/nsContentUtils.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-05 12:13:14 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:25 -0500
commitbf004bb63bcc9e2ea5f9417461ecb3042b27a2fa (patch)
tree8ffe8d9d391a5c72e033085f4ad02cff3757ca9a /dom/base/nsContentUtils.h
parent08fc057471e0f74a558de887e6f9ea9e19d42876 (diff)
downloadUXP-bf004bb63bcc9e2ea5f9417461ecb3042b27a2fa.tar
UXP-bf004bb63bcc9e2ea5f9417461ecb3042b27a2fa.tar.gz
UXP-bf004bb63bcc9e2ea5f9417461ecb3042b27a2fa.tar.lz
UXP-bf004bb63bcc9e2ea5f9417461ecb3042b27a2fa.tar.xz
UXP-bf004bb63bcc9e2ea5f9417461ecb3042b27a2fa.zip
Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name is in the observed attribute list.
We call attributeChangedCallback in two cases: 1. When any of the attributes in the observed attribute list has changed, appended, removed, or replaced. 2. When upgrading an element, for each attribute in element's attribute list that is in the observed attribute list. Note: w/ Fixup for not implementing an API Enhancement Bug 1363481. Tag UXP Issue #1344
Diffstat (limited to 'dom/base/nsContentUtils.h')
-rw-r--r--dom/base/nsContentUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h
index 06a7b5ded..96c920394 100644
--- a/dom/base/nsContentUtils.h
+++ b/dom/base/nsContentUtils.h
@@ -2723,6 +2723,11 @@ public:
static void SetupCustomElement(Element* aElement,
const nsAString* aTypeExtension = nullptr);
+ static mozilla::dom::CustomElementDefinition*
+ GetElementDefinitionIfObservingAttr(Element* aCustomElement,
+ nsIAtom* aExtensionType,
+ nsIAtom* aAttrName);
+
static void EnqueueLifecycleCallback(nsIDocument* aDoc,
nsIDocument::ElementCallbackType aType,
Element* aCustomElement,