mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1444580: Devirtualize IsScriptEnabled. r=smaug
MozReview-Commit-ID: FEhddLUXnO4
This commit is contained in:
parent
c72085c513
commit
0591ec07c1
@ -7696,7 +7696,7 @@ nsDocument::GetXMLDeclaration(nsAString& aVersion, nsAString& aEncoding,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
nsDocument::IsScriptEnabled()
|
nsIDocument::IsScriptEnabled()
|
||||||
{
|
{
|
||||||
// If this document is sandboxed without 'allow-scripts'
|
// If this document is sandboxed without 'allow-scripts'
|
||||||
// script is not enabled
|
// script is not enabled
|
||||||
|
@ -413,7 +413,6 @@ public:
|
|||||||
virtual void GetXMLDeclaration(nsAString& aVersion,
|
virtual void GetXMLDeclaration(nsAString& aVersion,
|
||||||
nsAString& aEncoding,
|
nsAString& aEncoding,
|
||||||
nsAString& Standalone) override;
|
nsAString& Standalone) override;
|
||||||
virtual bool IsScriptEnabled() override;
|
|
||||||
|
|
||||||
virtual void OnPageShow(bool aPersisted, mozilla::dom::EventTarget* aDispatchStartTarget) override;
|
virtual void OnPageShow(bool aPersisted, mozilla::dom::EventTarget* aDispatchStartTarget) override;
|
||||||
virtual void OnPageHide(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();
|
return IsXULDocument() || AllowXULXBL();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool IsScriptEnabled() = 0;
|
bool IsScriptEnabled();
|
||||||
|
|
||||||
bool IsTopLevelContentDocument() const { return mIsTopLevelContentDocument; }
|
bool IsTopLevelContentDocument() const { return mIsTopLevelContentDocument; }
|
||||||
void SetIsTopLevelContentDocument(bool aIsTopLevelContentDocument)
|
void SetIsTopLevelContentDocument(bool aIsTopLevelContentDocument)
|
||||||
|
Loading…
Reference in New Issue
Block a user