Bug 1598346 - Remove MinGW conditionals for IS_PRIVATE r=m_kato

Differential Revision: https://phabricator.services.mozilla.com/D55995

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2019-12-10 04:53:41 +00:00
Родитель 249472086b
Коммит 53d43ca329
2 изменённых файлов: 0 добавлений и 7 удалений

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

@ -905,11 +905,9 @@ class GetInputScopeString : public nsAutoCString {
case IS_XML:
AppendLiteral("IS_XML");
break;
#ifndef __MINGW32__
case IS_PRIVATE:
AppendLiteral("IS_PRIVATE");
break;
#endif
default:
AppendPrintf("Unknown Value(%d)", inputScope);
break;
@ -3967,12 +3965,9 @@ void TSFTextStore::SetInputScope(const nsString& aHTMLInputType,
bool aInPrivateBrowsing) {
mInputScopes.Clear();
#ifndef __MINGW32__
// MinGW build environment doesn't have IS_PRIVATE yet.
if (aInPrivateBrowsing) {
mInputScopes.AppendElement(IS_PRIVATE);
}
#endif
if (aHTMLInputType.IsEmpty() || aHTMLInputType.EqualsLiteral("text")) {
if (aHTMLInputInputMode.EqualsLiteral("url")) {

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

@ -643,11 +643,9 @@ void IMEHandler::SetInputScopeForIMM32(nsWindow* aWindow,
}
AutoTArray<InputScope, 3> scopes;
#ifndef __MINGW32__
if (aInPrivateBrowsing) {
scopes.AppendElement(IS_PRIVATE);
}
#endif
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html
if (aHTMLInputType.IsEmpty() || aHTMLInputType.EqualsLiteral("text")) {