зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1444580: Devirtualize PaymentRequest stuff. r=smaug
This one was easy, the bit was already in the right place :) MozReview-Commit-ID: 79KJNsIXIyb
This commit is contained in:
Родитель
07907b44d5
Коммит
c72085c513
|
@ -4077,18 +4077,6 @@ SubDocInitEntry(PLDHashEntryHdr *entry, const void *key)
|
|||
e->mSubDocument = nullptr;
|
||||
}
|
||||
|
||||
bool
|
||||
nsDocument::AllowPaymentRequest() const
|
||||
{
|
||||
return mAllowPaymentRequest;
|
||||
}
|
||||
|
||||
void
|
||||
nsDocument::SetAllowPaymentRequest(bool aAllowPaymentRequest)
|
||||
{
|
||||
mAllowPaymentRequest = aAllowPaymentRequest;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsIDocument::SetSubDocumentFor(Element* aElement, nsIDocument* aSubDoc)
|
||||
{
|
||||
|
|
|
@ -752,9 +752,6 @@ public:
|
|||
// DOM-exposed fullscreen API
|
||||
bool FullscreenEnabled(mozilla::dom::CallerType aCallerType) override;
|
||||
|
||||
virtual bool AllowPaymentRequest() const override;
|
||||
virtual void SetAllowPaymentRequest(bool aIsAllowPaymentRequest) override;
|
||||
|
||||
void RequestPointerLock(Element* aElement,
|
||||
mozilla::dom::CallerType aCallerType) override;
|
||||
bool SetPointerLock(Element* aElement, int aCursorStyle);
|
||||
|
|
|
@ -3274,8 +3274,15 @@ public:
|
|||
--mIgnoreOpensDuringUnloadCounter;
|
||||
}
|
||||
|
||||
virtual bool AllowPaymentRequest() const = 0;
|
||||
virtual void SetAllowPaymentRequest(bool aAllowPaymentRequest) = 0;
|
||||
bool AllowPaymentRequest() const
|
||||
{
|
||||
return mAllowPaymentRequest;
|
||||
}
|
||||
|
||||
void SetAllowPaymentRequest(bool aAllowPaymentRequest)
|
||||
{
|
||||
mAllowPaymentRequest = aAllowPaymentRequest;
|
||||
}
|
||||
|
||||
bool IsShadowDOMEnabled() const
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче