Bug 1626436 - Remove nsAutoPtr usage from dom/html. r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D69106
This commit is contained in:
Eric Rahm
2020-04-03 21:04:59 +00:00
parent 0995902fa6
commit 54d71f5beb
5 changed files with 14 additions and 14 deletions

View File

@@ -2137,7 +2137,7 @@ void HTMLInputElement::OpenDateTimePicker(const DateTimeValue& aInitialValue) {
return;
}
mDateTimeInputBoxValue = new DateTimeValue(aInitialValue);
mDateTimeInputBoxValue = MakeUnique<DateTimeValue>(aInitialValue);
nsContentUtils::DispatchChromeEvent(
OwnerDoc(), static_cast<Element*>(this),
NS_LITERAL_STRING("MozOpenDateTimePicker"), CanBubble::eYes,
@@ -2149,7 +2149,7 @@ void HTMLInputElement::UpdateDateTimePicker(const DateTimeValue& aValue) {
return;
}
mDateTimeInputBoxValue = new DateTimeValue(aValue);
mDateTimeInputBoxValue = MakeUnique<DateTimeValue>(aValue);
nsContentUtils::DispatchChromeEvent(
OwnerDoc(), static_cast<Element*>(this),
NS_LITERAL_STRING("MozUpdateDateTimePicker"), CanBubble::eYes,
@@ -3585,7 +3585,8 @@ static bool IgnoreInputEventWithModifier(const WidgetInputEvent& aEvent,
aEvent.IsFn() || aEvent.IsOS();
}
bool HTMLInputElement::StepsInputValue(const WidgetKeyboardEvent& aEvent) const {
bool HTMLInputElement::StepsInputValue(
const WidgetKeyboardEvent& aEvent) const {
if (mType != NS_FORM_INPUT_NUMBER) {
return false;
}