Bug 1373018: followup: Fix indentation in nsStyleContext::Destroy. r=whitespace-only
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 26 Jun 2017 15:34:36 -0700
changeset 366099 120ac289ac48c7163359aaf6e56178133058c36b
parent 366098 0069f96e7711e0c66d0dc46e79d2635d875724c5
child 366100 f5d25845cb7706d24f1e8ea5f54089ee3523c833
push id91880
push userecoal95@gmail.com
push dateMon, 26 Jun 2017 22:35:26 +0000
treeherdermozilla-inbound@120ac289ac48 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhitespace-only
bugs1373018
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1373018: followup: Fix indentation in nsStyleContext::Destroy. r=whitespace-only DONTBUILD MozReview-Commit-ID: AHOAL9rutnu
layout/style/nsStyleContext.cpp
--- a/layout/style/nsStyleContext.cpp
+++ b/layout/style/nsStyleContext.cpp
@@ -609,19 +609,19 @@ nsStyleContext::Destroy()
     // Get the pres context.
     RefPtr<nsPresContext> presContext = PresContext();
     // Call our destructor.
     this->AsGecko()->~GeckoStyleContext();
     // Don't let the memory be freed, since it will be recycled
     // instead. Don't call the global operator delete.
     presContext->PresShell()->
       FreeByObjectID(eArenaObjectID_GeckoStyleContext, this);
-    } else {
-      delete static_cast<ServoStyleContext*>(this);
-    }
+  } else {
+    delete static_cast<ServoStyleContext*>(this);
+  }
 }
 
 already_AddRefed<nsStyleContext>
 NS_NewStyleContext(nsStyleContext* aParentContext,
                    nsIAtom* aPseudoTag,
                    CSSPseudoElementType aPseudoType,
                    nsRuleNode* aRuleNode,
                    bool aSkipParentDisplayBasedStyleFixup)