| Index: Source/core/animation/ActiveAnimations.cpp
|
| diff --git a/Source/core/animation/ActiveAnimations.cpp b/Source/core/animation/ActiveAnimations.cpp
|
| index 586de09c0a5368685d59bb9d04f755fa34cc107a..0b8a87b55d365941e09d15e1c5db89d3c7a5d3c8 100644
|
| --- a/Source/core/animation/ActiveAnimations.cpp
|
| +++ b/Source/core/animation/ActiveAnimations.cpp
|
| @@ -35,6 +35,11 @@
|
|
|
| namespace blink {
|
|
|
| +ActiveAnimations::ActiveAnimations()
|
| + : m_animationStyleChange(false)
|
| +{
|
| +}
|
| +
|
| ActiveAnimations::~ActiveAnimations()
|
| {
|
| #if !ENABLE(OILPAN)
|
| @@ -85,4 +90,26 @@ void ActiveAnimations::trace(Visitor* visitor)
|
| #endif
|
| }
|
|
|
| +const RenderStyle* ActiveAnimations::baseRenderStyle() const
|
| +{
|
| +#if !ENABLE(ASSERT)
|
| + if (isAnimationStyleChange())
|
| + return m_baseRenderStyle.get();
|
| +#endif
|
| + return nullptr;
|
| +}
|
| +
|
| +void ActiveAnimations::updateBaseRenderStyle(const RenderStyle* renderStyle)
|
| +{
|
| + if (!isAnimationStyleChange()) {
|
| + m_baseRenderStyle = nullptr;
|
| + return;
|
| + }
|
| +#if ENABLE(ASSERT)
|
| + if (m_baseRenderStyle && renderStyle)
|
| + ASSERT(*m_baseRenderStyle == *renderStyle);
|
| +#endif
|
| + m_baseRenderStyle = RenderStyle::clone(renderStyle);
|
| +}
|
| +
|
| } // namespace blink
|
|
|