summaryrefslogtreecommitdiffstats
path: root/dom/base/nsIContent.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /dom/base/nsIContent.h
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/base/nsIContent.h')
-rw-r--r--dom/base/nsIContent.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h
index de00012a01..700855370f 100644
--- a/dom/base/nsIContent.h
+++ b/dom/base/nsIContent.h
@@ -21,6 +21,7 @@ class HTMLEditor;
struct URLExtraData;
namespace dom {
struct BindContext;
+struct UnbindContext;
class ShadowRoot;
class HTMLSlotElement;
} // namespace dom
@@ -58,6 +59,7 @@ class nsIContent : public nsINode {
using IMEEnabled = mozilla::widget::IMEEnabled;
using IMEState = mozilla::widget::IMEState;
using BindContext = mozilla::dom::BindContext;
+ using UnbindContext = mozilla::dom::UnbindContext;
void ConstructUbiNode(void* storage) override;
@@ -111,15 +113,10 @@ class nsIContent : public nsINode {
* from a parent, this will be called after it has been removed from the
* parent's child list and after the nsIDocumentObserver notifications for
* the removal have been dispatched.
- * @param aDeep Whether to recursively unbind the entire subtree rooted at
- * this node. The only time false should be passed is when the
- * parent node of the content is being destroyed.
- * @param aNullParent Whether to null out the parent pointer as well. This
- * is usually desirable. This argument should only be false while
- * recursively calling UnbindFromTree when a subtree is detached.
* @note This method is safe to call on nodes that are not bound to a tree.
*/
- virtual void UnbindFromTree(bool aNullParent = true) = 0;
+ virtual void UnbindFromTree(UnbindContext&) = 0;
+ void UnbindFromTree();
enum {
/**