Bug 1339704 - Part 1 - Rename nsCSSPropertyIDSet::Invert as Inverse.
This makes it more obvious that the object is not being modified but a
new object is being returned.
MozReview-Commit-ID: A6dH8f12h5A
--- a/dom/animation/EffectCompositor.cpp
+++ b/dom/animation/EffectCompositor.cpp
@@ -759,17 +759,17 @@ EffectCompositor::ComposeAnimationRule(d
AnimationRule& animRule = effects->AnimationRule(aCascadeLevel);
animRule.mGecko = nullptr;
// If multiple animations affect the same property, animations with higher
// composite order (priority) override or add or animations with lower
// priority except properties in propertiesToSkip.
const nsCSSPropertyIDSet& propertiesToSkip =
aCascadeLevel == CascadeLevel::Animations
- ? effects->PropertiesForAnimationsLevel().Invert()
+ ? effects->PropertiesForAnimationsLevel().Inverse()
: effects->PropertiesForAnimationsLevel();
for (KeyframeEffectReadOnly* effect : sortedEffectList) {
effect->GetAnimation()->WillComposeStyle();
effect->GetAnimation()->ComposeStyle(animRule, propertiesToSkip);
}
MOZ_ASSERT(effects == EffectSet::GetEffectSet(aElement, aPseudoType),
"EffectSet should not change while composing style");
--- a/layout/style/nsCSSPropertyIDSet.h
+++ b/layout/style/nsCSSPropertyIDSet.h
@@ -63,17 +63,17 @@ public:
}
}
bool Equals(const nsCSSPropertyIDSet& aOther) const {
return mozilla::PodEqual(mProperties, aOther.mProperties);
}
// Return a new nsCSSPropertyIDSet which is the inverse of this set.
- nsCSSPropertyIDSet Invert() const {
+ nsCSSPropertyIDSet Inverse() const {
nsCSSPropertyIDSet result;
for (size_t i = 0; i < mozilla::ArrayLength(mProperties); ++i) {
result.mProperties[i] = ~mProperties[i];
}
return result;
}
private: