Bug 1284422 part.6 Reduce indent of MOZ_LOG() in IMContextWrapper.cpp r?m_kato draft
authorMasayuki Nakano <masayuki@d-toybox.com>
Tue, 05 Jul 2016 18:44:18 +0900
changeset 384520 e80ea213d89f1a39d01fe6ce40a2fe9eeaa08fcc
parent 384519 a16801c4e58817abf6656dca4dfc2c7133f666e6
child 384521 f1193a3c0bc61202354d52d8ff068db91e08492e
push id22289
push usermasayuki@d-toybox.com
push dateWed, 06 Jul 2016 14:02:00 +0000
reviewersm_kato
bugs1284422
milestone50.0a1
Bug 1284422 part.6 Reduce indent of MOZ_LOG() in IMContextWrapper.cpp r?m_kato MozReview-Commit-ID: 4jHFhQiUoHv
widget/gtk/IMContextWrapper.cpp
--- a/widget/gtk/IMContextWrapper.cpp
+++ b/widget/gtk/IMContextWrapper.cpp
@@ -2268,53 +2268,53 @@ IMContextWrapper::EnsureToCacheSelection
 
     if (mSelection.IsValid() &&
         (!mSelection.Collapsed() || !aSelectedString)) {
        return true;
     }
 
     if (NS_WARN_IF(!mLastFocusedWindow)) {
         MOZ_LOG(gGtkIMLog, LogLevel::Error,
-                ("%p EnsureToCacheSelection(), FAILED, due to "
-                 "no focused window",
-                 this));
+            ("%p EnsureToCacheSelection(), FAILED, due to "
+             "no focused window",
+             this));
         return false;
     }
 
     nsEventStatus status;
     WidgetQueryContentEvent selection(true, eQuerySelectedText,
                                       mLastFocusedWindow);
     InitEvent(selection);
     mLastFocusedWindow->DispatchEvent(&selection, status);
     if (NS_WARN_IF(!selection.mSucceeded)) {
         MOZ_LOG(gGtkIMLog, LogLevel::Error,
-                ("%p EnsureToCacheSelection(), FAILED, due to "
-                 "failure of query selection event",
-                 this));
+            ("%p EnsureToCacheSelection(), FAILED, due to "
+             "failure of query selection event",
+             this));
         return false;
     }
 
     mSelection.Assign(selection);
     if (!mSelection.IsValid()) {
         MOZ_LOG(gGtkIMLog, LogLevel::Error,
-                ("%p EnsureToCacheSelection(), FAILED, due to "
-                 "failure of query selection event (invalid result)",
-                 this));
+            ("%p EnsureToCacheSelection(), FAILED, due to "
+             "failure of query selection event (invalid result)",
+             this));
         return false;
     }
 
     if (!mSelection.Collapsed() && aSelectedString) {
         aSelectedString->Assign(selection.mReply.mString);
     }
 
     MOZ_LOG(gGtkIMLog, LogLevel::Debug,
-            ("%p EnsureToCacheSelection(), Succeeded, mSelection="
-             "{ mOffset=%u, mLength=%u, mWritingMode=%s }",
-             this, mSelection.mOffset, mSelection.mLength,
-             GetWritingModeName(mSelection.mWritingMode).get()));
+        ("%p EnsureToCacheSelection(), Succeeded, mSelection="
+         "{ mOffset=%u, mLength=%u, mWritingMode=%s }",
+         this, mSelection.mOffset, mSelection.mLength,
+         GetWritingModeName(mSelection.mWritingMode).get()));
     return true;
 }
 
 /******************************************************************************
  * IMContextWrapper::Selection
  ******************************************************************************/
 
 void