Bug 1381083: Preliminary alignment and whitespace fixup. r?heycam
MozReview-Commit-ID: 9V7pqVMOAqo
--- 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)