gecko-dev/editor/composer
Masayuki Nakano 6bc92def07 Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug
Currently, editor code uses following style (or similar style) in a lot of places:

if (foo)
{

}
else
{

}

This patch fixes this as conforming to our coding rules, i.e., it becomes:

if (foo) {

} else {

}

Additionally, this fixes other odd control statements in the files which include above issue because it's difficult to find following issues with searching the files:

* if (foo) bar;
* if (foo) { bar; }
* if (foo)
    bar;

Finally, if it becomes much simpler than current code, this patch rewrites existing code with "early return style". But this case is only a few places because this is risky.

MozReview-Commit-ID: 2Gs26goWXrF

--HG--
extra : rebase_source : 603f9003a3566b3203bdeb27dc73ac33502d2853
2016-10-24 11:27:45 +09:00
..
crashtests Bug 500847 - Remove assertion annotations from editor/composer/crashtests/removing-editable-xslt.html. 2015-10-24 15:03:19 -04:00
res Bug 1301325 - Remove text_caret*.png under editor/composer/res/. r=mtseng 2016-09-08 16:54:15 +08:00
test Bug 1266815 - Part 2. Add editing session test. r=masayuki 2016-07-29 12:39:59 +09:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
nsComposerCommands.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsComposerCommands.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsComposerCommandsUpdater.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsComposerCommandsUpdater.h Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsComposerController.cpp Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsComposerController.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsComposerDocumentCommands.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsComposerRegistration.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsComposeTxtSrvFilter.cpp Bug 1219928 - Skip misspelled words in style blocks. r=enndeakin. 2015-11-24 08:45:00 +01:00
nsComposeTxtSrvFilter.h Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
nsEditingSession.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsEditingSession.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsEditorSpellCheck.cpp Bug 1311240 Fix odd "{" and "}" of control statements in editor for conforming to our coding rules r=smaug 2016-10-24 11:27:45 +09:00
nsEditorSpellCheck.h Bug 1205796 - "Coverity 1323784 indicates a useless passed-by-value argument in nsEditorSpellCheck::TryDictionary". r=smaug 2015-09-22 00:28:00 +02:00
nsIEditingSession.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00