mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +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 {
|
class AnimationUtils {
|
||||||
public:
|
public:
|
||||||
typedef dom::Document Document;
|
using Document = dom::Document;
|
||||||
|
|
||||||
static dom::Nullable<double> TimeDurationToDouble(
|
static dom::Nullable<double> TimeDurationToDouble(
|
||||||
const dom::Nullable<TimeDuration>& aTime) {
|
const dom::Nullable<TimeDuration>& aTime) {
|
||||||
|
@ -103,7 +103,7 @@ class EffectSet {
|
|||||||
bool MayHaveTransformAnimation() const { return mMayHaveTransformAnim; }
|
bool MayHaveTransformAnimation() const { return mMayHaveTransformAnim; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef nsTHashSet<nsRefPtrHashKey<dom::KeyframeEffect>> OwningEffectSet;
|
using OwningEffectSet = nsTHashSet<nsRefPtrHashKey<dom::KeyframeEffect>>;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// A simple iterator to support iterating over the effects in this object in
|
// A simple iterator to support iterating over the effects in this object in
|
||||||
|
@ -79,7 +79,7 @@ class PendingAnimationTracker final {
|
|||||||
|
|
||||||
void EnsurePaintIsScheduled();
|
void EnsurePaintIsScheduled();
|
||||||
|
|
||||||
typedef nsTHashSet<nsRefPtrHashKey<dom::Animation>> AnimationSet;
|
using AnimationSet = nsTHashSet<nsRefPtrHashKey<dom::Animation>>;
|
||||||
|
|
||||||
void AddPending(dom::Animation& aAnimation, AnimationSet& aSet);
|
void AddPending(dom::Animation& aAnimation, AnimationSet& aSet);
|
||||||
void RemovePending(dom::Animation& aAnimation, AnimationSet& aSet);
|
void RemovePending(dom::Animation& aAnimation, AnimationSet& aSet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user