Bug 943047 - Undo addressing of bogus review comment.

--HG--
extra : rebase_source : 7e919db02474e7632b9eacb0c66b6f255dcc8d07
This commit is contained in:
Jonathan Watt 2013-12-01 14:43:26 +00:00
Родитель d60c2f8139
Коммит 3711268fd5
1 изменённых файлов: 15 добавлений и 9 удалений

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

@ -3295,15 +3295,6 @@ HTMLInputElement::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
// nsIFormControlFrame::SetFocus, we handle focus here.
nsIFrame* frame = GetPrimaryFrame();
if (frame) {
if (aVisitor.mEvent->message == NS_FOCUS_CONTENT) {
// Tell our frame it's getting focus so that it can make sure focus
// is moved to our anonymous text control.
nsNumberControlFrame* numberControlFrame =
do_QueryFrame(GetPrimaryFrame());
if (numberControlFrame) {
numberControlFrame->HandleFocusEvent(aVisitor.mEvent);
}
}
frame->InvalidateFrameSubtree();
}
}
@ -3342,6 +3333,21 @@ HTMLInputElement::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
StopNumberControlSpinnerSpin();
}
}
if (aVisitor.mEvent->message == NS_FOCUS_CONTENT ||
aVisitor.mEvent->message == NS_BLUR_CONTENT) {
nsIFrame* frame = GetPrimaryFrame();
if (frame) {
if (aVisitor.mEvent->message == NS_FOCUS_CONTENT) {
// Tell our frame it's getting focus so that it can make sure focus
// is moved to our anonymous text control.
nsNumberControlFrame* numberControlFrame =
do_QueryFrame(GetPrimaryFrame());
if (numberControlFrame) {
numberControlFrame->HandleFocusEvent(aVisitor.mEvent);
}
}
}
}
}
nsresult rv = nsGenericHTMLFormElementWithState::PreHandleEvent(aVisitor);