コード例 #1
0
InterpolationValue CSSImageInterpolationType::maybeConvertNeutral(
    const InterpolationValue& underlying,
    ConversionCheckers& conversionCheckers) const {
  conversionCheckers.append(UnderlyingImageChecker::create(underlying));
  return InterpolationValue(underlying.clone());
}
コード例 #2
0
InterpolationValue CSSPaintInterpolationType::maybeConvertNeutral(const InterpolationValue&, ConversionCheckers&) const
{
    return InterpolationValue(CSSColorInterpolationType::createInterpolableColor(Color::transparent));
}
コード例 #3
0
InterpolationValue CSSScaleInterpolationType::maybeConvertUnderlyingValue(
    const InterpolationEnvironment& environment) const {
  return InterpolationValue(
      Scale(environment.state().style()->scale()).createInterpolableValue());
}
コード例 #4
0
static InterpolationValue convertKeyword(CSSValueID keyword) {
  return InterpolationValue(InterpolableList::create(0),
                            CSSSizeNonInterpolableValue::create(keyword));
}
コード例 #5
0
InterpolationValue CSSScaleInterpolationType::maybeConvertInitial(
    const StyleResolverState&,
    ConversionCheckers&) const {
  return InterpolationValue(Scale(1, 1, 1).createInterpolableValue());
}
コード例 #6
0
InterpolationValue CSSScaleInterpolationType::maybeConvertNeutral(
    const InterpolationValue&,
    ConversionCheckers&) const {
  return InterpolationValue(Scale(1, 1, 1).createInterpolableValue());
}
コード例 #7
0
InterpolationValue SVGAngleInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
{
    if (toSVGAngle(svgValue).orientType()->enumValue() != SVGMarkerOrientAngle)
        return nullptr;
    return InterpolationValue(InterpolableNumber::create(toSVGAngle(svgValue).value()));
}
コード例 #8
0
InterpolationValue SVGAngleInterpolationType::maybeConvertNeutral(const InterpolationValue&, ConversionCheckers&) const
{
    return InterpolationValue(InterpolableNumber::create(0));
}
コード例 #9
0
InterpolationValue CSSNumberInterpolationType::createNumberValue(double number) const
{
    return InterpolationValue(InterpolableNumber::create(number));
}