Bug 1367293 - Explicitly cast nsStyleContext* to nullptr. r?birtles
In subsequent patches, the servo version of KeyframeUtils::ApplySpacing()
changes fifth argument to const ServoComputedValues*. If we still use nullptr
for the fifth argument in caller side, compilers can't determine whether
nsStyleContext* or const ServoComputedValues* should be used.
MozReview-Commit-ID: 1bE2cA7gRdi
--- a/dom/animation/KeyframeUtils.cpp
+++ b/dom/animation/KeyframeUtils.cpp
@@ -583,18 +583,19 @@ KeyframeUtils::ApplySpacing(nsTArray<Key
keyframeA = keyframeB;
}
}
/* static */ void
KeyframeUtils::ApplyDistributeSpacing(nsTArray<Keyframe>& aKeyframes)
{
nsTArray<ComputedKeyframeValues> emptyArray;
+ // FIXME: Bug 1339690: below static_cast should be dropped.
ApplySpacing(aKeyframes, SpacingMode::distribute, eCSSProperty_UNKNOWN,
- emptyArray, nullptr);
+ emptyArray, static_cast<nsStyleContext*>(nullptr));
}
/* static */ nsTArray<ComputedKeyframeValues>
KeyframeUtils::GetComputedKeyframeValues(
const nsTArray<Keyframe>& aKeyframes,
dom::Element* aElement,
const ServoComputedValuesWithParent& aServoValues)
{