Bug 1289211 - Rename InfallibleTArray to nsTArray in widget/ r=jmathies
authorBarret Rennie <barret@brennie.ca>
Wed, 10 Jul 2019 03:33:42 +0000
changeset 545979 ddbf599fa85804c64acd157402f9cd44f20a3a4b
parent 545978 4acf26703f7f55b008c5f10d65ed2373601ddb70
child 545980 c8c9a4b6034d9decbc888d78b7426325f49a08ee
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmathies
bugs1289211
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1289211 - Rename InfallibleTArray to nsTArray in widget/ r=jmathies Differential Revision: https://phabricator.services.mozilla.com/D36969
widget/ContentCache.h
widget/nsBaseFilePicker.h
widget/nsFilePickerProxy.cpp
widget/nsFilePickerProxy.h
widget/windows/IMMHandler.h
--- a/widget/ContentCache.h
+++ b/widget/ContentCache.h
@@ -30,17 +30,17 @@ class BrowserParent;
 /**
  * ContentCache stores various information of the child content.
  * This class has members which are necessary both in parent process and
  * content process.
  */
 
 class ContentCache {
  public:
-  typedef InfallibleTArray<LayoutDeviceIntRect> RectArray;
+  typedef nsTArray<LayoutDeviceIntRect> RectArray;
   typedef widget::IMENotification IMENotification;
 
   ContentCache();
 
  protected:
   // Whole text in the target
   nsString mText;
 
--- a/widget/nsBaseFilePicker.h
+++ b/widget/nsBaseFilePicker.h
@@ -54,12 +54,12 @@ class nsBaseFilePicker : public nsIFileP
 
   bool mAddToRecentDocs;
   nsCOMPtr<nsIFile> mDisplayDirectory;
   nsString mDisplaySpecialDirectory;
 
   nsCOMPtr<nsPIDOMWindowOuter> mParent;
   int16_t mMode;
   nsString mOkButtonLabel;
-  InfallibleTArray<nsString> mRawFilters;
+  nsTArray<nsString> mRawFilters;
 };
 
 #endif  // nsBaseFilePicker_h__
--- a/widget/nsFilePickerProxy.cpp
+++ b/widget/nsFilePickerProxy.cpp
@@ -129,17 +129,17 @@ nsFilePickerProxy::Open(nsIFilePickerSho
            mDisplaySpecialDirectory, mOkButtonLabel);
 
   return NS_OK;
 }
 
 mozilla::ipc::IPCResult nsFilePickerProxy::Recv__delete__(
     const MaybeInputData& aData, const int16_t& aResult) {
   if (aData.type() == MaybeInputData::TInputBlobs) {
-    const InfallibleTArray<IPCBlob>& blobs = aData.get_InputBlobs().blobs();
+    const nsTArray<IPCBlob>& blobs = aData.get_InputBlobs().blobs();
     for (uint32_t i = 0; i < blobs.Length(); ++i) {
       RefPtr<BlobImpl> blobImpl = IPCBlobUtils::Deserialize(blobs[i]);
       NS_ENSURE_TRUE(blobImpl, IPC_OK());
 
       if (!blobImpl->IsFile()) {
         return IPC_OK();
       }
 
--- a/widget/nsFilePickerProxy.h
+++ b/widget/nsFilePickerProxy.h
@@ -69,13 +69,13 @@ class nsFilePickerProxy : public nsBaseF
 
   int16_t mSelectedType;
   nsString mFile;
   nsString mDefault;
   nsString mDefaultExtension;
 
   bool mIPCActive;
 
-  InfallibleTArray<nsString> mFilters;
-  InfallibleTArray<nsString> mFilterNames;
+  nsTArray<nsString> mFilters;
+  nsTArray<nsString> mFilterNames;
 };
 
 #endif  // NSFILEPICKERPROXY_H
--- a/widget/windows/IMMHandler.h
+++ b/widget/windows/IMMHandler.h
@@ -386,18 +386,18 @@ class IMMHandler final {
     mPassedIMEChar.AppendElement(msg);
   }
 
   TextEventDispatcher* GetTextEventDispatcherFor(nsWindow* aWindow);
 
   nsWindow* mComposingWindow;
   RefPtr<TextEventDispatcher> mDispatcher;
   nsString mCompositionString;
-  InfallibleTArray<uint32_t> mClauseArray;
-  InfallibleTArray<uint8_t> mAttributeArray;
+  nsTArray<uint32_t> mClauseArray;
+  nsTArray<uint8_t> mAttributeArray;
 
   int32_t mCursorPosition;
   uint32_t mCompositionStart;
 
   struct Selection {
     nsString mString;
     uint32_t mOffset;
     mozilla::WritingMode mWritingMode;