Bug 1436508 part 15. Remove nsIDOMTransitionEvent. r=masayuki

MozReview-Commit-ID: EWWqk9HAwqp
This commit is contained in:
Boris Zbarsky 2018-02-09 11:17:10 -05:00
Родитель c61fc860fe
Коммит 55a170b415
6 изменённых файлов: 8 добавлений и 46 удалений

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

@ -1914,7 +1914,7 @@ DebuggerServer.ObjectActorPreviewers.Object = [
preview.modifiers = modifiers;
props.push("key", "charCode", "keyCode");
} else if (rawObj instanceof Ci.nsIDOMTransitionEvent) {
} else if (obj.class == "TransitionEvent") {
props.push("propertyName", "pseudoElement");
} else if (obj.class == "AnimationEvent") {
props.push("animationName", "pseudoElement");

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

@ -27,7 +27,6 @@ TransitionEvent::TransitionEvent(EventTarget* aOwner,
}
NS_INTERFACE_MAP_BEGIN(TransitionEvent)
NS_INTERFACE_MAP_ENTRY(nsIDOMTransitionEvent)
NS_INTERFACE_MAP_END_INHERITING(Event)
NS_IMPL_ADDREF_INHERITED(TransitionEvent, Event)
@ -56,18 +55,10 @@ TransitionEvent::Constructor(const GlobalObject& aGlobal,
return e.forget();
}
NS_IMETHODIMP
TransitionEvent::GetPropertyName(nsAString& aPropertyName)
void
TransitionEvent::GetPropertyName(nsAString& aPropertyName) const
{
aPropertyName = mEvent->AsTransitionEvent()->mPropertyName;
return NS_OK;
}
NS_IMETHODIMP
TransitionEvent::GetElapsedTime(float* aElapsedTime)
{
*aElapsedTime = ElapsedTime();
return NS_OK;
}
float
@ -76,11 +67,10 @@ TransitionEvent::ElapsedTime()
return mEvent->AsTransitionEvent()->mElapsedTime;
}
NS_IMETHODIMP
TransitionEvent::GetPseudoElement(nsAString& aPseudoElement)
void
TransitionEvent::GetPseudoElement(nsAString& aPseudoElement) const
{
aPseudoElement = mEvent->AsTransitionEvent()->mPseudoElement;
return NS_OK;
}
} // namespace dom

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

@ -9,14 +9,12 @@
#include "mozilla/EventForwards.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/TransitionEventBinding.h"
#include "nsIDOMTransitionEvent.h"
#include "nsStringFwd.h"
namespace mozilla {
namespace dom {
class TransitionEvent : public Event,
public nsIDOMTransitionEvent
class TransitionEvent : public Event
{
public:
TransitionEvent(EventTarget* aOwner,
@ -24,8 +22,6 @@ public:
InternalTransitionEvent* aEvent);
NS_DECL_ISUPPORTS_INHERITED
NS_FORWARD_TO_EVENT
NS_DECL_NSIDOMTRANSITIONEVENT
static already_AddRefed<TransitionEvent>
Constructor(const GlobalObject& aGlobal,
@ -38,9 +34,8 @@ public:
return TransitionEventBinding::Wrap(aCx, this, aGivenProto);
}
// xpidl implementation
// GetPropertyName(nsAString& aPropertyName)
// GetPseudoElement(nsAString& aPreudoElement)
void GetPropertyName(nsAString& aPropertyName) const;
void GetPseudoElement(nsAString& aPreudoElement) const;
float ElapsedTime();

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

@ -23,7 +23,6 @@ XPIDL_SOURCES += [
'nsIDOMPaintRequest.idl',
'nsIDOMScrollAreaEvent.idl',
'nsIDOMSimpleGestureEvent.idl',
'nsIDOMTransitionEvent.idl',
'nsIDOMUIEvent.idl',
'nsIDOMWheelEvent.idl',
]

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

@ -1,19 +0,0 @@
/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
/**
* Transition events are defined in:
* http://www.w3.org/TR/css3-transitions/#transition-events-
* http://dev.w3.org/csswg/css3-transitions/#transition-events-
*/
[builtinclass, uuid(ee3499bf-0f14-4bb6-829c-19ad24fd4a85)]
interface nsIDOMTransitionEvent : nsISupports {
readonly attribute DOMString propertyName;
readonly attribute float elapsedTime;
readonly attribute DOMString pseudoElement;
};

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

@ -55,7 +55,6 @@
#include "nsIDOMSimpleGestureEvent.h"
#include "nsIDOMText.h"
#include "nsIDOMTimeRanges.h"
#include "nsIDOMTransitionEvent.h"
#include "nsIDOMUIEvent.h"
#include "nsIDOMValidityState.h"
#include "nsIDOMWheelEvent.h"
@ -141,7 +140,6 @@
#include "mozilla/dom/TextBinding.h"
#include "mozilla/dom/TimeEventBinding.h"
#include "mozilla/dom/TimeRangesBinding.h"
#include "mozilla/dom/TransitionEventBinding.h"
#include "mozilla/dom/TreeBoxObjectBinding.h"
#include "mozilla/dom/UIEventBinding.h"
#include "mozilla/dom/ValidityStateBinding.h"
@ -261,7 +259,6 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
DEFINE_SHIM(SimpleGestureEvent),
DEFINE_SHIM(Text),
DEFINE_SHIM(TimeRanges),
DEFINE_SHIM(TransitionEvent),
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsITreeBoxObject, TreeBoxObject),
DEFINE_SHIM(UIEvent),
DEFINE_SHIM(ValidityState),