From e31ed5b07466d4a579fe4b025f97c971003fbc3f Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:10:54 -0400 Subject: Bug 1409975 - Implement node distribution for shadow tree slots * Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375 --- dom/base/nsIContent.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dom/base/nsIContent.h') diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h index 8da0ba7f2..975173656 100644 --- a/dom/base/nsIContent.h +++ b/dom/base/nsIContent.h @@ -999,6 +999,12 @@ protected: */ nsIAtom* DoGetID() const; + /** + * Returns the assigned slot, if it exists, or the direct parent, if it's a + * fallback content of a slot. + */ + nsINode* GetFlattenedTreeParentForMaybeAssignedNode() const; + public: #ifdef DEBUG /** -- cgit v1.2.3