| Index: Source/core/animation/ElementAnimations.cpp
|
| diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp
|
| index 86500eca222de8ac8b5f370b13498a3558e4425b..9a725ca4bbb0d21a375e4ab181a5d0453848a0af 100644
|
| --- a/Source/core/animation/ElementAnimations.cpp
|
| +++ b/Source/core/animation/ElementAnimations.cpp
|
| @@ -92,10 +92,6 @@ DEFINE_TRACE(ElementAnimations)
|
|
|
| const LayoutStyle* ElementAnimations::baseLayoutStyle() const
|
| {
|
| -#if !ENABLE(ASSERT)
|
| - if (isAnimationStyleChange())
|
| - return m_baseLayoutStyle.get();
|
| -#endif
|
| return nullptr;
|
| }
|
|
|
| @@ -105,10 +101,10 @@ void ElementAnimations::updateBaseLayoutStyle(const LayoutStyle* layoutStyle)
|
| m_baseLayoutStyle = nullptr;
|
| return;
|
| }
|
| -#if ENABLE(ASSERT)
|
| - if (m_baseLayoutStyle && layoutStyle)
|
| - ASSERT(*m_baseLayoutStyle == *layoutStyle);
|
| -#endif
|
| + if (m_baseLayoutStyle && layoutStyle) {
|
| + RELEASE_ASSERT(*m_baseLayoutStyle == *layoutStyle);
|
| + return;
|
| + }
|
| m_baseLayoutStyle = LayoutStyle::clone(*layoutStyle);
|
| }
|
|
|
|
|