diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 15:59:26 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:29 -0500 |
commit | 3d4c4100912132141881f40e90ddbd3aba8b0737 (patch) | |
tree | 92a662145f0243654c42c8cf830cebf5df7aa30f /dom/base/nsContentUtils.h | |
parent | 186782301c03f4b27e4edae07b0280e92c4e01d1 (diff) | |
download | UXP-3d4c4100912132141881f40e90ddbd3aba8b0737.tar UXP-3d4c4100912132141881f40e90ddbd3aba8b0737.tar.gz UXP-3d4c4100912132141881f40e90ddbd3aba8b0737.tar.lz UXP-3d4c4100912132141881f40e90ddbd3aba8b0737.tar.xz UXP-3d4c4100912132141881f40e90ddbd3aba8b0737.zip |
Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static.
We make nsContentUtils::EnqueueLifecycleCallback static so that it can be called without a window object. To achive this, we also make CustomElementReaction not taking a CustomElementRegistry in the constructor, as it can call Upgrade statically.
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/nsContentUtils.h')
-rw-r--r-- | dom/base/nsContentUtils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h index 1828d8b21..5075bcb6d 100644 --- a/dom/base/nsContentUtils.h +++ b/dom/base/nsContentUtils.h @@ -2731,8 +2731,7 @@ public: static void EnqueueUpgradeReaction(Element* aElement, mozilla::dom::CustomElementDefinition* aDefinition); - static void EnqueueLifecycleCallback(nsIDocument* aDoc, - nsIDocument::ElementCallbackType aType, + static void EnqueueLifecycleCallback(nsIDocument::ElementCallbackType aType, Element* aCustomElement, mozilla::dom::LifecycleCallbackArgs* aArgs = nullptr, mozilla::dom::CustomElementDefinition* aDefinition = nullptr); |