зеркало из https://github.com/mozilla/gecko-dev.git
Bug 895274 part.114 Rename NS_SVG_ZOOM to eSVGZoom r=smaug
This commit is contained in:
Родитель
04de99392e
Коммит
2b42662c53
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче