mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
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:
parent
90ad105d5d
commit
6b6ee72f7e
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user