mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
2bc03e825a
commit
8fe5a1b9d4
@ -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)) {
|
||||
|
@ -50,7 +50,7 @@ UIEvent::UIEvent(EventTarget* aOwner,
|
||||
switch(mEvent->mClass) {
|
||||
case eUIEventClass:
|
||||
{
|
||||
mDetail = mEvent->AsUIEvent()->detail;
|
||||
mDetail = mEvent->AsUIEvent()->mDetail;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user