Bug 1216030 - Part 15: Add KeyframeEffectReadOnly::GetCollection. r=bbirtles

This commit is contained in:
Hiroyuki Ikezoe 2015-11-06 02:53:00 +01:00
parent ac66eb2736
commit 6e809a002a
3 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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();