mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove duplicate range-value-setting code from nsHTMLInputElement.cpp by calling pre-existing helper that does exactly the same thing. r=me. No bug.
This commit is contained in:
parent
8f72caeb73
commit
caa43afdb0
@ -2961,16 +2961,7 @@ nsHTMLInputElement::PostHandleEvent(nsEventChainPostVisitor& aVisitor)
|
||||
newValue = value - std::max(step, 0.1 * (maximum - minimum));
|
||||
break;
|
||||
}
|
||||
MOZ_ASSERT(MOZ_DOUBLE_IS_FINITE(newValue));
|
||||
nsAutoString val;
|
||||
ConvertNumberToString(newValue, val);
|
||||
SetValueInternal(val, true, true);
|
||||
nsIFrame* frame = GetPrimaryFrame();
|
||||
if (frame) {
|
||||
// Trigger reflow to update the position of the thumb:
|
||||
frame->PresContext()->GetPresShell()->
|
||||
FrameNeedsReflow(frame, nsIPresShell::eResize, NS_FRAME_IS_DIRTY);
|
||||
}
|
||||
SetValueOfRangeForUserEvent(newValue);
|
||||
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user