Bug 1381083: Preliminary alignment and whitespace fixup. r?heycam draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 27 Jul 2017 00:28:52 +0200
changeset 617444 3e6f0571b2a3655d082eeaa46ebe313f2cc2decf
parent 617443 b6a15a11a52958b32e84e885b257c4ec33ea9f92
child 617445 f2c1ff3f932456ea910d65217e1cc094f8e9a118
push id71048
push userbmo:emilio+bugs@crisal.io
push dateFri, 28 Jul 2017 12:58:45 +0000
reviewersheycam
bugs1381083
milestone56.0a1
Bug 1381083: Preliminary alignment and whitespace fixup. r?heycam MozReview-Commit-ID: 9V7pqVMOAqo
layout/style/nsComputedDOMStyle.cpp
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -632,19 +632,19 @@ nsComputedDOMStyle::DoGetStyleContextNoF
           nsPresContext* presContext = presShell->GetPresContext();
           MOZ_ASSERT(presContext, "Should have a prescontext if we have a frame");
           if (presContext && presContext->StyleSet()->IsGecko()) {
             nsStyleSet* styleSet = presContext->StyleSet()->AsGecko();
             return styleSet->ResolveStyleByRemovingAnimation(
                      aElement, result->AsGecko(),
                      eRestyle_AllHintsWithAnimations);
           } else {
-              return presContext->StyleSet()->AsServo()->
-                GetBaseContextForElement(aElement, nullptr, presContext,
-                                         aPseudo, pseudoType, result->AsServo());
+            return presContext->StyleSet()->AsServo()->
+              GetBaseContextForElement(aElement, nullptr, presContext,
+                                       aPseudo, pseudoType, result->AsServo());
           }
         }
 
         // this function returns an addrefed style context
         RefPtr<nsStyleContext> ret = result;
         return ret.forget();
       }
     }
@@ -5398,17 +5398,16 @@ nsComputedDOMStyle::GetStickyOffset(mozi
 
   val->SetAppUnits(StyleCoordToNSCoord(coord, baseGetter, 0, false));
   return val.forget();
 }
 
 
 already_AddRefed<CSSValue>
 nsComputedDOMStyle::GetStaticOffset(mozilla::Side aSide)
-
 {
   RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
   SetValueToCoord(val, StylePosition()->mOffset.Get(aSide), false);
   return val.forget();
 }
 
 already_AddRefed<CSSValue>
 nsComputedDOMStyle::GetPaddingWidthFor(mozilla::Side aSide)