Backed out changeset db13e1fbc642 (bug 691151) because some in-tree callers are still using the function

This commit is contained in:
Masatoshi Kimura 2013-05-25 08:41:19 +09:00
Родитель bb5e32fd22
Коммит 6c62e3f1ba
4 изменённых файлов: 4 добавлений и 15 удалений

Просмотреть файл

@ -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.