Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D41559
This commit is contained in:
Sylvestre Ledru
2019-08-13 07:15:25 +00:00
parent 20b7e24f40
commit 3067b10938
68 changed files with 228 additions and 239 deletions

View File

@@ -873,18 +873,16 @@ class AddContentRunnable : public Runnable {
inline void nsHtml5StreamParser::OnNewContent(Span<const char16_t> aData) {
if (mURIToSendToDevtools) {
NS_DispatchToMainThread(new AddContentRunnable(mUUIDForDevtools,
mURIToSendToDevtools,
aData,
mURIToSendToDevtools, aData,
/* aComplete */ false));
}
}
inline void nsHtml5StreamParser::OnContentComplete() {
if (mURIToSendToDevtools) {
NS_DispatchToMainThread(new AddContentRunnable(mUUIDForDevtools,
mURIToSendToDevtools,
Span<const char16_t>(),
/* aComplete */ true));
NS_DispatchToMainThread(new AddContentRunnable(
mUUIDForDevtools, mURIToSendToDevtools, Span<const char16_t>(),
/* aComplete */ true));
mURIToSendToDevtools = nullptr;
}
}
@@ -1193,9 +1191,7 @@ void nsHtml5StreamParser::DoStopRequest() {
"Stream ended without being open.");
mTokenizerMutex.AssertCurrentThreadOwns();
auto guard = MakeScopeExit([&] {
OnContentComplete();
});
auto guard = MakeScopeExit([&] { OnContentComplete(); });
if (IsTerminated()) {
return;