зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1516366 - Move CloneDocHelper to nsIDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15363
This commit is contained in:
Родитель
f7401d4d89
Коммит
1165f7d4ed
|
@ -8073,7 +8073,7 @@ void nsIDocument::RefreshLinkHrefs() {
|
|||
}
|
||||
}
|
||||
|
||||
nsresult nsDocument::CloneDocHelper(nsDocument* clone) const {
|
||||
nsresult nsIDocument::CloneDocHelper(nsIDocument* clone) const {
|
||||
clone->mIsStaticDocument = mCreatingStaticClone;
|
||||
|
||||
// Init document
|
||||
|
@ -8110,7 +8110,7 @@ nsresult nsDocument::CloneDocHelper(nsDocument* clone) const {
|
|||
// information came from the channel. So we override explicitly, and do it
|
||||
// for all these properties, in case ResetToURI messes with any of the rest of
|
||||
// them.
|
||||
clone->nsDocument::SetDocumentURI(nsIDocument::GetDocumentURI());
|
||||
clone->SetDocumentURI(nsIDocument::GetDocumentURI());
|
||||
clone->SetChromeXHRDocURI(mChromeXHRDocURI);
|
||||
clone->SetPrincipal(NodePrincipal());
|
||||
clone->mDocumentBaseURI = mDocumentBaseURI;
|
||||
|
@ -10964,8 +10964,8 @@ void nsIDocument::DocAddSizeOfExcludingThis(nsWindowSizes& aWindowSizes) const {
|
|||
mNodeInfoManager->AddSizeOfIncludingThis(aWindowSizes);
|
||||
}
|
||||
|
||||
aWindowSizes.mDOMMediaQueryLists +=
|
||||
mDOMMediaQueryLists.sizeOfExcludingThis(aWindowSizes.mState.mMallocSizeOf);
|
||||
aWindowSizes.mDOMMediaQueryLists += mDOMMediaQueryLists.sizeOfExcludingThis(
|
||||
aWindowSizes.mState.mMallocSizeOf);
|
||||
|
||||
for (const MediaQueryList* mql : mDOMMediaQueryLists) {
|
||||
aWindowSizes.mDOMMediaQueryLists +=
|
||||
|
|
|
@ -110,8 +110,6 @@ class nsDocument : public nsIDocument {
|
|||
NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_AMBIGUOUS(nsDocument,
|
||||
nsINode)
|
||||
|
||||
nsresult CloneDocHelper(nsDocument* clone) const;
|
||||
|
||||
protected:
|
||||
friend class nsNodeUtils;
|
||||
|
||||
|
|
|
@ -605,6 +605,7 @@ class nsIDocument : public nsINode,
|
|||
nsINode** aResult) const override {
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
nsresult CloneDocHelper(nsIDocument* clone) const;
|
||||
|
||||
/**
|
||||
* Signal that the document title may have changed
|
||||
|
|
Загрузка…
Ссылка в новой задаче