Bug 1259659 - rename from InternalUIEvent.detail to InternalUIEvent.mDetail. r=masayuki

MozReview-Commit-ID: FjqZ5D2NCFb

--HG--
extra : rebase_source : fad73cc04658b7891f6c5932f0da55db8ae1d615
This commit is contained in:
Tetsuharu OHZEKI 2016-03-26 16:22:27 +09:00
parent 2bc03e825a
commit 8fe5a1b9d4
7 changed files with 12 additions and 12 deletions

View File

@ -3015,7 +3015,7 @@ Element::PostHandleEventForLinks(EventChainPostVisitor& aVisitor)
// DOMActive event should be trusted since the activation is actually
// occurred even if the cause is an untrusted click event.
InternalUIEvent actEvent(true, eLegacyDOMActivate, mouseEvent);
actEvent.detail = 1;
actEvent.mDetail = 1;
rv = shell->HandleDOMEventWithTarget(this, &actEvent, &status);
if (NS_SUCCEEDED(rv)) {

View File

@ -50,7 +50,7 @@ UIEvent::UIEvent(EventTarget* aOwner,
switch(mEvent->mClass) {
case eUIEventClass:
{
mDetail = mEvent->AsUIEvent()->detail;
mDetail = mEvent->AsUIEvent()->mDetail;
break;
}

View File

@ -253,7 +253,7 @@ HTMLButtonElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
// DOMActive event should be trusted since the activation is actually
// occurred even if the cause is an untrusted click event.
InternalUIEvent actEvent(true, eLegacyDOMActivate, mouseEvent);
actEvent.detail = 1;
actEvent.mDetail = 1;
nsCOMPtr<nsIPresShell> shell = aVisitor.mPresContext->GetPresShell();
if (shell) {

View File

@ -3781,7 +3781,7 @@ HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
// DOMActive event should be trusted since the activation is actually
// occurred even if the cause is an untrusted click event.
InternalUIEvent actEvent(true, eLegacyDOMActivate, mouseEvent);
actEvent.detail = 1;
actEvent.mDetail = 1;
nsCOMPtr<nsIPresShell> shell = aVisitor.mPresContext->GetPresShell();
if (shell) {

View File

@ -19,7 +19,7 @@ TimeEvent::TimeEvent(EventTarget* aOwner,
InternalSMILTimeEvent* aEvent)
: Event(aOwner, aPresContext,
aEvent ? aEvent : new InternalSMILTimeEvent(false, eVoidEvent))
, mDetail(mEvent->AsSMILTimeEvent()->detail)
, mDetail(mEvent->AsSMILTimeEvent()->mDetail)
{
if (aEvent) {
mEventIsInternal = false;

View File

@ -97,7 +97,7 @@ namespace
NS_IMETHOD Run()
{
InternalSMILTimeEvent event(true, mMsg);
event.detail = mDetail;
event.mDetail = mDetail;
nsPresContext* context = nullptr;
nsIDocument* doc = mTarget->GetCurrentDoc();

View File

@ -825,7 +825,7 @@ class InternalUIEvent : public WidgetGUIEvent
{
protected:
InternalUIEvent()
: detail(0)
: mDetail(0)
, mCausedByUntrustedEvent(false)
{
}
@ -833,7 +833,7 @@ protected:
InternalUIEvent(bool aIsTrusted, EventMessage aMessage, nsIWidget* aWidget,
EventClassID aEventClassID)
: WidgetGUIEvent(aIsTrusted, aMessage, aWidget, aEventClassID)
, detail(0)
, mDetail(0)
, mCausedByUntrustedEvent(false)
{
}
@ -841,7 +841,7 @@ protected:
InternalUIEvent(bool aIsTrusted, EventMessage aMessage,
EventClassID aEventClassID)
: WidgetGUIEvent(aIsTrusted, aMessage, nullptr, aEventClassID)
, detail(0)
, mDetail(0)
, mCausedByUntrustedEvent(false)
{
}
@ -857,7 +857,7 @@ public:
InternalUIEvent(bool aIsTrusted, EventMessage aMessage,
const WidgetEvent* aEventCausesThisEvent)
: WidgetGUIEvent(aIsTrusted, aMessage, nullptr, eUIEventClass)
, detail(0)
, mDetail(0)
, mCausedByUntrustedEvent(
aEventCausesThisEvent && !aEventCausesThisEvent->IsTrusted())
{
@ -873,7 +873,7 @@ public:
return result;
}
int32_t detail;
int32_t mDetail;
// mCausedByUntrustedEvent is true if the event is caused by untrusted event.
bool mCausedByUntrustedEvent;
@ -888,7 +888,7 @@ public:
{
AssignGUIEventData(aEvent, aCopyTargets);
detail = aEvent.detail;
mDetail = aEvent.mDetail;
mCausedByUntrustedEvent = aEvent.mCausedByUntrustedEvent;
}
};