1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "core/animation/css/CSSTransitionData.h"
8 #include "core/animation/Timing.h"
12 CSSTransitionData::CSSTransitionData()
14 m_propertyList.append(initialProperty());
17 CSSTransitionData::CSSTransitionData(const CSSTransitionData& other)
18 : CSSTimingData(other)
19 , m_propertyList(other.m_propertyList)
23 bool CSSTransitionData::transitionsMatchForStyleRecalc(const CSSTransitionData& other) const
25 return m_propertyList == other.m_propertyList;
28 Timing CSSTransitionData::convertToTiming(size_t index) const
30 ASSERT(index < m_propertyList.size());
31 // Note that the backwards fill part is required for delay to work.
32 Timing timing = CSSTimingData::convertToTiming(index);
33 timing.fillMode = Timing::FillModeBoth;