From 53d43ca3298bb1aed9fb8f5d8d6acc4604053cd3 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 10 Dec 2019 04:53:41 +0000 Subject: [PATCH] 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 --- widget/windows/TSFTextStore.cpp | 5 ----- widget/windows/WinIMEHandler.cpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/widget/windows/TSFTextStore.cpp b/widget/windows/TSFTextStore.cpp index 17db961f79e6..a2d8bf46f65a 100644 --- a/widget/windows/TSFTextStore.cpp +++ b/widget/windows/TSFTextStore.cpp @@ -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")) { diff --git a/widget/windows/WinIMEHandler.cpp b/widget/windows/WinIMEHandler.cpp index a39a504a4d5e..6760ad75760c 100644 --- a/widget/windows/WinIMEHandler.cpp +++ b/widget/windows/WinIMEHandler.cpp @@ -643,11 +643,9 @@ void IMEHandler::SetInputScopeForIMM32(nsWindow* aWindow, } AutoTArray 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")) {