Bug 1656107 - remove unused Document::FindContentForSubDocument. r=farre

Differential Revision: https://phabricator.services.mozilla.com/D98622
This commit is contained in:
Steven MacLeod 2021-01-21 00:45:14 +00:00
parent 101370035a
commit 615c7cc3b1
2 changed files with 0 additions and 21 deletions

View File

@ -6706,22 +6706,6 @@ Document* Document::GetSubDocumentFor(nsIContent* aContent) const {
return nullptr;
}
Element* Document::FindContentForSubDocument(Document* aDocument) const {
NS_ENSURE_TRUE(aDocument, nullptr);
if (!mSubDocuments) {
return nullptr;
}
for (auto iter = mSubDocuments->Iter(); !iter.Done(); iter.Next()) {
auto entry = static_cast<SubDocMapEntry*>(iter.Get());
if (entry->mSubDocument == aDocument) {
return entry->mKey;
}
}
return nullptr;
}
Element* Document::GetEmbedderElement() const {
// We check if we're the active document in our BrowsingContext
// by comparing against its document, rather than checking if the

View File

@ -1246,11 +1246,6 @@ class Document : public nsINode,
*/
Document* GetSubDocumentFor(nsIContent* aContent) const;
/**
* Find the content node for which aDocument is a sub document.
*/
Element* FindContentForSubDocument(Document* aDocument) const;
/**
* Get the content node for which this document is a sub document.
*/