tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 9b706eb0a2b2071c1efaa7054d7b794ff6be7c92
parent 2d9326f07add96d7fad597dce857ec77690a58b6
Author: Keith Cirkel <keithamus@users.noreply.github.com>
Date:   Mon, 15 Dec 2025 20:09:10 +0000

Bug 1867743 - Part 1: Remove AddTo/RemoveFromAutoPopoverList dead code r=dom-core,smaug

These methods are never used in the codebase.

Differential Revision: https://phabricator.services.mozilla.com/D276367

Diffstat:
Mdom/base/Document.cpp | 10----------
Mdom/base/Document.h | 4----
2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp @@ -16284,16 +16284,6 @@ Element* Document::GetTopmostAutoPopover() const { return nullptr; } -void Document::AddToAutoPopoverList(Element& aElement) { - MOZ_ASSERT(aElement.IsAutoPopover()); - TopLayerPush(aElement); -} - -void Document::RemoveFromAutoPopoverList(Element& aElement) { - MOZ_ASSERT(aElement.IsAutoPopover()); - TopLayerPop(aElement); -} - void Document::AddPopoverToTopLayer(Element& aElement) { MOZ_ASSERT(aElement.GetPopoverData()); TopLayerPush(aElement); diff --git a/dom/base/Document.h b/dom/base/Document.h @@ -3607,10 +3607,6 @@ class Document : public nsINode, // https://html.spec.whatwg.org/multipage/popover.html#topmost-auto-popover Element* GetTopmostAutoPopover() const; - // Adds/removes an element to/from the auto popover list. - void AddToAutoPopoverList(Element&); - void RemoveFromAutoPopoverList(Element&); - void AddPopoverToTopLayer(Element&); void RemovePopoverFromTopLayer(Element&);