Issue #2456 - Intersection Observer - Accept a Document as an explicit root. https://bugzilla.mozilla.org/show_bug.cgi?id=1617154

This commit is contained in:
Brian Smith 2024-01-15 05:54:48 -06:00 committed by roytam1
commit f44db6a28b
3 changed files with 50 additions and 33 deletions

View file

@ -145,7 +145,7 @@ public:
return mOwner;
}
Element* GetRoot() const {
nsINode* GetRoot() const {
return mRoot;
}
@ -178,7 +178,7 @@ protected:
nsCOMPtr<nsPIDOMWindowInner> mOwner;
RefPtr<nsIDocument> mDocument;
RefPtr<mozilla::dom::IntersectionCallback> mCallback;
RefPtr<Element> mRoot;
RefPtr<nsINode> mRoot;
nsCSSRect mRootMargin;
nsTArray<double> mThresholds;