Bug 1723050 - Part 1: Replace typedef by using in dom/animation/ r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D121293
This commit is contained in:
Kagami Sascha Rosylight 2021-08-05 02:25:23 +00:00
parent 90ad105d5d
commit 6b6ee72f7e
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class Element;
class AnimationUtils {
public:
typedef dom::Document Document;
using Document = dom::Document;
static dom::Nullable<double> TimeDurationToDouble(
const dom::Nullable<TimeDuration>& aTime) {

View File

@ -103,7 +103,7 @@ class EffectSet {
bool MayHaveTransformAnimation() const { return mMayHaveTransformAnim; }
private:
typedef nsTHashSet<nsRefPtrHashKey<dom::KeyframeEffect>> OwningEffectSet;
using OwningEffectSet = nsTHashSet<nsRefPtrHashKey<dom::KeyframeEffect>>;
public:
// A simple iterator to support iterating over the effects in this object in

View File

@ -79,7 +79,7 @@ class PendingAnimationTracker final {
void EnsurePaintIsScheduled();
typedef nsTHashSet<nsRefPtrHashKey<dom::Animation>> AnimationSet;
using AnimationSet = nsTHashSet<nsRefPtrHashKey<dom::Animation>>;
void AddPending(dom::Animation& aAnimation, AnimationSet& aSet);
void RemovePending(dom::Animation& aAnimation, AnimationSet& aSet);