Bug 1519636 - Reformat recent changes to the Google coding style. r=necko-reviewers,emilio

Updated with clang-format version 12.0.0 (taskcluster-FZRqPXamQIOU_i4hF0cAcg)

Differential Revision: https://phabricator.services.mozilla.com/D117905
This commit is contained in:
Andi-Bogdan Postelnicu
2021-06-17 11:00:22 +00:00
parent 48d0b14987
commit 45c2f471e5
24 changed files with 351 additions and 348 deletions

View File

@@ -2635,7 +2635,8 @@ void BrowsingContext::DidSet(FieldIndex<IDX_HasMainMediaController>,
auto BrowsingContext::CanSet(FieldIndex<IDX_AllowJavascript>, bool aValue,
ContentParent* aSource) -> CanSetResult {
if (mozilla::SessionHistoryInParent()) {
return XRE_IsParentProcess() && !aSource ? CanSetResult::Allow : CanSetResult::Deny;
return XRE_IsParentProcess() && !aSource ? CanSetResult::Allow
: CanSetResult::Deny;
}
// Without Session History in Parent, session restore code still needs to set
@@ -2647,7 +2648,6 @@ void BrowsingContext::DidSet(FieldIndex<IDX_AllowJavascript>, bool aOldValue) {
RecomputeCanExecuteScripts();
}
void BrowsingContext::RecomputeCanExecuteScripts() {
const bool old = mCanExecuteScripts;
if (!AllowJavascript()) {