mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1544216 Part 3 - simplify boolean logic r=birtles
This commit is contained in:
parent
42123676f7
commit
0722010cf3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user