Bug 1444580: Devirtualize IsScriptEnabled. r=smaug

MozReview-Commit-ID: FEhddLUXnO4
This commit is contained in:
Emilio Cobos Álvarez 2018-03-10 05:31:04 +01:00
Родитель c72085c513
Коммит 0591ec07c1
3 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -7696,7 +7696,7 @@ nsDocument::GetXMLDeclaration(nsAString& aVersion, nsAString& aEncoding,
}
bool
nsDocument::IsScriptEnabled()
nsIDocument::IsScriptEnabled()
{
// If this document is sandboxed without 'allow-scripts'
// script is not enabled

Просмотреть файл

@ -413,7 +413,6 @@ public:
virtual void GetXMLDeclaration(nsAString& aVersion,
nsAString& aEncoding,
nsAString& Standalone) override;
virtual bool IsScriptEnabled() override;
virtual void OnPageShow(bool aPersisted, mozilla::dom::EventTarget* aDispatchStartTarget) override;
virtual void OnPageHide(bool aPersisted, mozilla::dom::EventTarget* aDispatchStartTarget) override;

Просмотреть файл

@ -1899,7 +1899,7 @@ public:
return IsXULDocument() || AllowXULXBL();
}
virtual bool IsScriptEnabled() = 0;
bool IsScriptEnabled();
bool IsTopLevelContentDocument() const { return mIsTopLevelContentDocument; }
void SetIsTopLevelContentDocument(bool aIsTopLevelContentDocument)