Bug 1544216 Part 3 - simplify boolean logic r=birtles

This commit is contained in:
longsonr 2019-04-17 23:32:42 +01:00
parent 42123676f7
commit 0722010cf3

View File

@ -16,15 +16,11 @@ inline bool SMILSetAnimationFunction::IsDisallowedAttribute(
// by) -- BUT has 'to'
// AnimationAddition.attrib(additive, accumulate)
//
if (aAttribute == nsGkAtoms::calcMode || aAttribute == nsGkAtoms::values ||
aAttribute == nsGkAtoms::keyTimes ||
aAttribute == nsGkAtoms::keySplines || aAttribute == nsGkAtoms::from ||
aAttribute == nsGkAtoms::by || aAttribute == nsGkAtoms::additive ||
aAttribute == nsGkAtoms::accumulate) {
return true;
}
return false;
return aAttribute == nsGkAtoms::calcMode || aAttribute == nsGkAtoms::values ||
aAttribute == nsGkAtoms::keyTimes ||
aAttribute == nsGkAtoms::keySplines || aAttribute == nsGkAtoms::from ||
aAttribute == nsGkAtoms::by || aAttribute == nsGkAtoms::additive ||
aAttribute == nsGkAtoms::accumulate;
}
bool SMILSetAnimationFunction::SetAttr(nsAtom* aAttribute,