Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden

Differential Revision: https://phabricator.services.mozilla.com/D43957
This commit is contained in:
Henri Sivonen
2019-09-18 08:26:34 +00:00
parent 838f9adfa7
commit c18206b0e8
54 changed files with 621 additions and 355 deletions

View File

@@ -18,6 +18,7 @@
#include "mozilla/dom/WheelEventBinding.h"
#include "mozilla/PresShell.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/TextUtils.h"
#include "nsAttrValueInlines.h"
#include "nsCRTGlue.h"
#include "nsQueryObject.h"
@@ -1540,7 +1541,7 @@ int32_t HTMLInputElement::MonthsSinceJan1970(uint32_t aYear,
/* static */
Decimal HTMLInputElement::StringToDecimal(const nsAString& aValue) {
if (!IsASCII(aValue)) {
if (!IsAscii(aValue)) {
return Decimal::nan();
}
NS_LossyConvertUTF16toASCII asciiString(aValue);