зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset db13e1fbc642 (bug 691151) because some in-tree callers are still using the function
This commit is contained in:
Родитель
bb5e32fd22
Коммит
6c62e3f1ba
|
@ -30,4 +30,3 @@ DEPRECATED_OPERATION(PrefixedVisibilityAPI)
|
|||
DEPRECATED_OPERATION(NodeIteratorDetach)
|
||||
DEPRECATED_OPERATION(MozAudioData)
|
||||
DEPRECATED_OPERATION(LenientThis)
|
||||
DEPRECATED_OPERATION(GetPreventDefault)
|
||||
|
|
|
@ -1220,17 +1220,6 @@ const char* nsDOMEvent::GetEventName(uint32_t aEventType)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
bool
|
||||
nsDOMEvent::GetPreventDefault() const
|
||||
{
|
||||
if (mOwner) {
|
||||
if (nsIDocument* doc = mOwner->GetExtantDoc()) {
|
||||
doc->WarnOnceAbout(nsIDocument::eGetPreventDefault);
|
||||
}
|
||||
}
|
||||
return DefaultPrevented();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMEvent::GetPreventDefault(bool* aReturn)
|
||||
{
|
||||
|
|
|
@ -189,7 +189,10 @@ public:
|
|||
mozilla::dom::EventTarget* GetOriginalTarget() const;
|
||||
mozilla::dom::EventTarget* GetExplicitOriginalTarget() const;
|
||||
|
||||
bool GetPreventDefault() const;
|
||||
bool GetPreventDefault() const
|
||||
{
|
||||
return DefaultPrevented();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -130,5 +130,3 @@ MozAudioDataWarning=The Mozilla Audio Data API is deprecated. Please use the We
|
|||
LenientThisWarning=Ignoring get or set of property that has [LenientThis] because the "this" object is incorrect.
|
||||
# LOCALIZATION NOTE: Do not translate "nsIDOMWindowUtils", "getWindowWithOuterId", or "nsIWindowMediator"
|
||||
GetWindowWithOuterIdWarning=Use of nsIDOMWindowUtils.getOuterWindowWithId() is deprecated. Instead, use the nsIWindowMediator method of the same name.
|
||||
# LOCALIZATION NOTE: Do not translate "getPreventDefault" or "defaultPrevented".
|
||||
GetPreventDefaultWarning=Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
|
||||
|
|
Загрузка…
Ссылка в новой задаче