зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446601: Devirtualize nsIDocument::Get/SetFailedChannel. r=bz
Summary: The member is already in nsIDocument anyway. Reviewers: bzbarsky Bug #: 1446601 Differential Revision: https://phabricator.services.mozilla.com/D751 MozReview-Commit-ID: 90Ad5wiCeMS
This commit is contained in:
Родитель
8a2f92ec95
Коммит
16defc8e69
|
@ -166,13 +166,6 @@ public:
|
|||
static bool IsWebAnimationsEnabled(JSContext* aCx, JSObject* aObject);
|
||||
static bool IsWebAnimationsEnabled(mozilla::dom::CallerType aCallerType);
|
||||
|
||||
virtual nsIChannel* GetFailedChannel() const override {
|
||||
return mFailedChannel;
|
||||
}
|
||||
virtual void SetFailedChannel(nsIChannel* aChannel) override {
|
||||
mFailedChannel = aChannel;
|
||||
}
|
||||
|
||||
virtual void EndUpdate(nsUpdateType aUpdateType) override;
|
||||
virtual void BeginLoad() override;
|
||||
virtual void EndLoad() override;
|
||||
|
|
|
@ -2263,13 +2263,19 @@ public:
|
|||
* Get the channel that failed to load and resulted in an error page, if it
|
||||
* exists. This is only relevant to error pages.
|
||||
*/
|
||||
virtual nsIChannel* GetFailedChannel() const = 0;
|
||||
nsIChannel* GetFailedChannel() const
|
||||
{
|
||||
return mFailedChannel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the channel that failed to load and resulted in an error page.
|
||||
* This is only relevant to error pages.
|
||||
*/
|
||||
virtual void SetFailedChannel(nsIChannel* aChannel) = 0;
|
||||
void SetFailedChannel(nsIChannel* aChannel)
|
||||
{
|
||||
mFailedChannel = aChannel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the default namespace ID used for elements created in this
|
||||
|
|
Загрузка…
Ссылка в новой задаче