Bug 1518374 - Move a couple of bool members next to each other in KeyframeEffect.h so they can be packed together; r=hiro

Depends on D15901

Differential Revision: https://phabricator.services.mozilla.com/D15902

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Birtles 2019-01-08 06:43:52 +00:00
Родитель 361e464182
Коммит 1fd4653bf3
2 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -70,7 +70,6 @@ KeyframeEffect::KeyframeEffect(Document* aDocument,
: AnimationEffect(aDocument, std::move(aTiming)),
mTarget(aTarget),
mEffectOptions(aOptions),
mInEffectOnLastAnimationTimingUpdate(false),
mCumulativeChangeHint(nsChangeHint(0)) {}
JSObject* KeyframeEffect::WrapObject(JSContext* aCx,

Просмотреть файл

@ -397,7 +397,12 @@ class KeyframeEffect : public AnimationEffect {
// We need to track when we go to or from being "in effect" since
// we need to re-evaluate the cascade of animations when that changes.
bool mInEffectOnLastAnimationTimingUpdate;
bool mInEffectOnLastAnimationTimingUpdate = false;
// True if this effect is in the EffectSet for its target element. This is
// used as an optimization to avoid unnecessary hashmap lookups on the
// EffectSet.
bool mInEffectSet = false;
// The non-animated values for properties in this effect that contain at
// least one animation value that is composited with the underlying value
@ -406,11 +411,6 @@ class KeyframeEffect : public AnimationEffect {
nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>;
BaseValuesHashmap mBaseValues;
// True if this effect is in the EffectSet for its target element. This is
// used as an optimization to avoid unnecessary hashmap lookups on the
// EffectSet.
bool mInEffectSet = false;
private:
nsChangeHint mCumulativeChangeHint;