зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1444580: Devirtualize subdocument stuff. r=smaug
MozReview-Commit-ID: Hbh3j85JPKm
This commit is contained in:
Родитель
48d7f1f02e
Коммит
f73bf76b95
|
@ -8053,7 +8053,7 @@ nsDocument::Sanitize()
|
|||
}
|
||||
|
||||
void
|
||||
nsDocument::EnumerateSubDocuments(nsSubDocEnumFunc aCallback, void *aData)
|
||||
nsIDocument::EnumerateSubDocuments(nsSubDocEnumFunc aCallback, void *aData)
|
||||
{
|
||||
if (!mSubDocuments) {
|
||||
return;
|
||||
|
@ -8077,7 +8077,7 @@ nsDocument::EnumerateSubDocuments(nsSubDocEnumFunc aCallback, void *aData)
|
|||
}
|
||||
|
||||
void
|
||||
nsDocument::CollectDescendantDocuments(
|
||||
nsIDocument::CollectDescendantDocuments(
|
||||
nsTArray<nsCOMPtr<nsIDocument>>& aDescendants,
|
||||
nsDocTestFunc aCallback) const
|
||||
{
|
||||
|
|
|
@ -509,12 +509,6 @@ public:
|
|||
|
||||
virtual void Sanitize() override;
|
||||
|
||||
virtual void EnumerateSubDocuments(nsSubDocEnumFunc aCallback,
|
||||
void *aData) override;
|
||||
virtual void CollectDescendantDocuments(
|
||||
nsTArray<nsCOMPtr<nsIDocument>>& aDescendants,
|
||||
nsDocTestFunc aCallback) const override;
|
||||
|
||||
virtual bool CanSavePresentation(nsIRequest *aNewRequest) override;
|
||||
virtual void Destroy() override;
|
||||
virtual void RemovedFromDocShell() override;
|
||||
|
|
|
@ -2020,17 +2020,16 @@ public:
|
|||
* false to stop. This will never get passed a null aDocument.
|
||||
*/
|
||||
typedef bool (*nsSubDocEnumFunc)(nsIDocument *aDocument, void *aData);
|
||||
virtual void EnumerateSubDocuments(nsSubDocEnumFunc aCallback,
|
||||
void *aData) = 0;
|
||||
void EnumerateSubDocuments(nsSubDocEnumFunc aCallback, void *aData);
|
||||
|
||||
/**
|
||||
* Collect all the descendant documents for which |aCalback| returns true.
|
||||
* The callback function must not mutate any state for the given document.
|
||||
*/
|
||||
typedef bool (*nsDocTestFunc)(const nsIDocument* aDocument);
|
||||
virtual void CollectDescendantDocuments(
|
||||
void CollectDescendantDocuments(
|
||||
nsTArray<nsCOMPtr<nsIDocument>>& aDescendants,
|
||||
nsDocTestFunc aCallback) const = 0;
|
||||
nsDocTestFunc aCallback) const;
|
||||
|
||||
/**
|
||||
* Check whether it is safe to cache the presentation of this document
|
||||
|
|
Загрузка…
Ссылка в новой задаче