mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1656107 - remove unused Document::FindContentForSubDocument. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98622
This commit is contained in:
parent
101370035a
commit
615c7cc3b1
@ -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
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user