Пример #1
0
const ComputedStyle* ElementAnimations::baseComputedStyle() const {
#if !DCHECK_IS_ON()
  if (isAnimationStyleChange())
    return m_baseComputedStyle.get();
#endif
  return nullptr;
}
const ComputedStyle* ElementAnimations::baseComputedStyle() const
{
#if !ENABLE(ASSERT)
    if (isAnimationStyleChange())
        return m_baseComputedStyle.get();
#endif
    return nullptr;
}
Пример #3
0
void ElementAnimations::updateBaseComputedStyle(
    const ComputedStyle* computedStyle) {
  if (!isAnimationStyleChange()) {
    m_baseComputedStyle = nullptr;
    return;
  }
#if DCHECK_IS_ON()
  if (m_baseComputedStyle && computedStyle)
    DCHECK(*m_baseComputedStyle == *computedStyle);
#endif
  m_baseComputedStyle = ComputedStyle::clone(*computedStyle);
}
void ElementAnimations::updateBaseComputedStyle(const ComputedStyle* computedStyle)
{
    if (!isAnimationStyleChange()) {
        m_baseComputedStyle = nullptr;
        return;
    }
#if ENABLE(ASSERT)
    if (m_baseComputedStyle && computedStyle)
        ASSERT(*m_baseComputedStyle == *computedStyle);
#endif
    m_baseComputedStyle = ComputedStyle::clone(*computedStyle);
}