Bug 1179451 - Part 1: Rewrite some ternary operators as if/else. r=froydnj

This commit is contained in:
Aryeh Gregor
2015-08-13 15:22:48 +03:00
parent 6c5d0d5488
commit c1bd5a2ced
15 changed files with 71 additions and 18 deletions

View File

@@ -873,7 +873,10 @@ nsRangeFrame::GetAdditionalStyleContext(int32_t aIndex) const
// We only implement this so that SetAdditionalStyleContext will be
// called if style changes that would change the -moz-focus-outer
// pseudo-element have occurred.
return aIndex == 0 ? mOuterFocusStyle : nullptr;
if (aIndex != 0) {
return nullptr;
}
return mOuterFocusStyle;
}
void