Backed out 7 changesets (bug 1660405) for causing bustages on Linux x64 opt. CLOSED TREE

Backed out changeset ad1a5f59214f (bug 1660405)
Backed out changeset a39e95f0aafe (bug 1660405)
Backed out changeset 48629ee0d70d (bug 1660405)
Backed out changeset 8419b99aab60 (bug 1660405)
Backed out changeset 535cc12c8bed (bug 1660405)
Backed out changeset e27052da4927 (bug 1660405)
Backed out changeset 11b0f9cf8091 (bug 1660405)
This commit is contained in:
Stanca Serban
2023-03-22 13:05:53 +02:00
parent ada7f15566
commit 98c675ed3f
133 changed files with 504 additions and 416 deletions

View File

@@ -1832,7 +1832,7 @@ void HTMLInputElement::SetValueAsDate(JSContext* aCx,
// At this point we know we're not a file input, so we can just pass "not
// system" as the caller type, since the caller type only matters in the file
// input case.
if (std::isnan(milliseconds)) {
if (IsNaN(milliseconds)) {
SetValue(u""_ns, CallerType::NonSystem, aRv);
return;
}
@@ -1846,7 +1846,7 @@ void HTMLInputElement::SetValueAsDate(JSContext* aCx,
double year = JS::YearFromTime(milliseconds);
double month = JS::MonthFromTime(milliseconds);
if (std::isnan(year) || std::isnan(month)) {
if (IsNaN(year) || IsNaN(month)) {
SetValue(u""_ns, CallerType::NonSystem, aRv);
return;
}
@@ -1859,7 +1859,7 @@ void HTMLInputElement::SetValueAsNumber(double aValueAsNumber,
ErrorResult& aRv) {
// TODO: return TypeError when HTMLInputElement is converted to WebIDL, see
// bug 825197.
if (std::isinf(aValueAsNumber)) {
if (IsInfinite(aValueAsNumber)) {
aRv.Throw(NS_ERROR_INVALID_ARG);
return;
}