Bug 895274 part.114 Rename NS_SVG_ZOOM to eSVGZoom r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-07 23:55:52 +09:00
Родитель 04de99392e
Коммит 2b42662c53
4 изменённых файлов: 5 добавлений и 5 удалений

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

@ -759,7 +759,7 @@ NON_IDL_EVENT(SVGScroll,
eBasicEventClass)
NON_IDL_EVENT(SVGZoom,
NS_SVG_ZOOM,
eSVGZoom,
EventNameType_None,
eSVGZoomEventClass)
@ -767,7 +767,7 @@ NON_IDL_EVENT(SVGZoom,
#ifndef MESSAGE_TO_EVENT
// This is a bit hackish, but SVG's event names are weird.
NON_IDL_EVENT(zoom,
NS_SVG_ZOOM,
eSVGZoom,
EventNameType_SVGSVG,
eBasicEventClass)
#endif

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

@ -511,7 +511,7 @@ SVGSVGElement::SetCurrentScaleTranslate(float s, float x, float y)
if (presShell && IsRoot()) {
nsEventStatus status = nsEventStatus_eIgnore;
if (mPreviousScale != mCurrentScale) {
InternalSVGZoomEvent svgZoomEvent(true, NS_SVG_ZOOM);
InternalSVGZoomEvent svgZoomEvent(true, eSVGZoom);
presShell->HandleDOMEventWithTarget(this, &svgZoomEvent, &status);
} else {
WidgetEvent svgScrollEvent(true, eSVGScroll);

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

@ -31,7 +31,7 @@ SVGZoomEvent::SVGZoomEvent(EventTarget* aOwner,
nsPresContext* aPresContext,
InternalSVGZoomEvent* aEvent)
: UIEvent(aOwner, aPresContext,
aEvent ? aEvent : new InternalSVGZoomEvent(false, NS_SVG_ZOOM))
aEvent ? aEvent : new InternalSVGZoomEvent(false, eSVGZoom))
, mPreviousScale(0)
, mNewScale(0)
{

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

@ -199,7 +199,7 @@ NS_EVENT_MESSAGE(eSVGScroll, eSVGEventFirst + 5)
// SVG Zoom events
NS_EVENT_MESSAGE(eSVGZoomEventFirst, 2900)
NS_EVENT_MESSAGE(NS_SVG_ZOOM, eSVGZoomEventFirst)
NS_EVENT_MESSAGE(eSVGZoom, eSVGZoomEventFirst)
// XUL command events
NS_EVENT_MESSAGE(eXULCommandEventFirst, 3000)