зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1444580: Devirtualize IsScriptEnabled. r=smaug
MozReview-Commit-ID: FEhddLUXnO4
This commit is contained in:
Родитель
c72085c513
Коммит
0591ec07c1
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче