mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1216030 - Part 15: Add KeyframeEffectReadOnly::GetCollection. r=bbirtles
This commit is contained in:
parent
fdffcc6238
commit
0d0337b616
@ -295,6 +295,8 @@ public:
|
||||
|
||||
void NotifyEffectTimingUpdated();
|
||||
|
||||
AnimationCollection* GetCollection() const;
|
||||
|
||||
protected:
|
||||
void SilentlySetCurrentTime(const TimeDuration& aNewCurrentTime);
|
||||
void SilentlySetPlaybackRate(double aPlaybackRate);
|
||||
@ -355,7 +357,6 @@ protected:
|
||||
nsIDocument* GetRenderedDocument() const;
|
||||
nsPresContext* GetPresContext() const;
|
||||
virtual CommonAnimationManager* GetAnimationManager() const = 0;
|
||||
AnimationCollection* GetCollection() const;
|
||||
|
||||
RefPtr<AnimationTimeline> mTimeline;
|
||||
RefPtr<KeyframeEffectReadOnly> mEffect;
|
||||
|
@ -1784,6 +1784,12 @@ KeyframeEffectReadOnly::GetPresContext() const
|
||||
return shell->GetPresContext();
|
||||
}
|
||||
|
||||
AnimationCollection *
|
||||
KeyframeEffectReadOnly::GetCollection() const
|
||||
{
|
||||
return mAnimation ? mAnimation->GetCollection() : nullptr;
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
KeyframeEffectReadOnly::IsGeometricProperty(
|
||||
const nsCSSProperty aProperty)
|
||||
|
@ -32,6 +32,7 @@ class nsPresContext;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
struct AnimationCollection;
|
||||
class AnimValuesStyleRule;
|
||||
|
||||
namespace dom {
|
||||
@ -291,6 +292,8 @@ public:
|
||||
nsIDocument* GetRenderedDocument() const;
|
||||
nsPresContext* GetPresContext() const;
|
||||
|
||||
inline AnimationCollection* GetCollection() const;
|
||||
|
||||
protected:
|
||||
virtual ~KeyframeEffectReadOnly();
|
||||
void ResetIsRunningOnCompositor();
|
||||
|
Loading…
Reference in New Issue
Block a user