chromium/third_party/blink/renderer/core/animation/interpolable_grid_track_size.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_INTERPOLABLE_GRID_TRACK_SIZE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_INTERPOLABLE_GRID_TRACK_SIZE_H_

#include <memory>
#include "third_party/blink/renderer/core/animation/interpolable_value.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/style/grid_track_size.h"

namespace blink {

// Represents a blink::GridTrackSize, converted into a form that can be
// interpolated from/to.
// This class is a representation of <track-size> values:
// <track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) |
// fit-content( <length-percentage> )
class CORE_EXPORT InterpolableGridTrackSize final : public InterpolableValue {};

template <>
struct DowncastTraits<InterpolableGridTrackSize> {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_INTERPOLABLE_GRID_TRACK_SIZE_H_