flutter_flutter/engine/core/animation/css/CSSTransitionData.cpp
Adam Barth d8d7db82a0 Really remove config.h
This CL generated by |sed -i '/sky\/engine\/config.h/d'| and a manual sweep to
catch some oddballs.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1206763002.
2015-06-23 23:15:28 -07:00

37 lines
1002 B
C++

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sky/engine/core/animation/css/CSSTransitionData.h"
#include "sky/engine/core/animation/Timing.h"
namespace blink {
CSSTransitionData::CSSTransitionData()
{
m_propertyList.append(initialProperty());
}
CSSTransitionData::CSSTransitionData(const CSSTransitionData& other)
: CSSTimingData(other)
, m_propertyList(other.m_propertyList)
{
}
bool CSSTransitionData::transitionsMatchForStyleRecalc(const CSSTransitionData& other) const
{
return m_propertyList == other.m_propertyList;
}
Timing CSSTransitionData::convertToTiming(size_t index) const
{
ASSERT(index < m_propertyList.size());
// Note that the backwards fill part is required for delay to work.
Timing timing = CSSTimingData::convertToTiming(index);
timing.fillMode = Timing::FillModeBoth;
return timing;
}
} // namespace blink