blob: d0a2bb7fd056d93c061b0a074ecf70ecb2690d05 [file] [log] [blame]
// Copyright 2020 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 "third_party/blink/renderer/core/animation/css_interpolation_environment.h"
#include "third_party/blink/renderer/core/animation/property_handle.h"
#include "third_party/blink/renderer/core/css/resolver/cascade_resolver.h"
#include "third_party/blink/renderer/core/css/resolver/style_cascade.h"
namespace blink {
const CSSValue* CSSInterpolationEnvironment::Resolve(
const PropertyHandle& property,
const CSSValue* value) const {
DCHECK(cascade_);
DCHECK(cascade_resolver_);
if (!value)
return value;
return cascade_->Resolve(property.GetCSSPropertyName(), *value,
CascadeOrigin::kAnimation, *cascade_resolver_);
}
} // namespace blink