chromium/third_party/blink/renderer/core/css/resolver/css_to_style_map.cc

/*
 * Copyright (C) 1999 Lars Knoll ([email protected])
 *           (C) 2004-2005 Allan Sandfeld Jensen ([email protected])
 * Copyright (C) 2006, 2007 Nicholas Shanks ([email protected])
 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All
 * rights reserved.
 * Copyright (C) 2007 Alexey Proskuryakov <[email protected]>
 * Copyright (C) 2007, 2008 Eric Seidel <[email protected]>
 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
 * (http://www.torchmobile.com/)
 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#include "third_party/blink/renderer/core/css/resolver/css_to_style_map.h"

#include "third_party/blink/renderer/core/animation/css/css_animation_data.h"
#include "third_party/blink/renderer/core/animation/effect_model.h"
#include "third_party/blink/renderer/core/css/css_border_image_slice_value.h"
#include "third_party/blink/renderer/core/css/css_custom_ident_value.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_math_function_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value_mappings.h"
#include "third_party/blink/renderer/core/css/css_quad_value.h"
#include "third_party/blink/renderer/core/css/css_repeat_style_value.h"
#include "third_party/blink/renderer/core/css/css_scroll_value.h"
#include "third_party/blink/renderer/core/css/css_timing_function_value.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/css/css_value_pair.h"
#include "third_party/blink/renderer/core/css/css_view_value.h"
#include "third_party/blink/renderer/core/css/resolver/style_builder_converter.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver_state.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/style/border_image_length_box.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/style/fill_layer.h"
#include "third_party/blink/renderer/platform/animation/timing_function.h"

namespace blink {

void CSSToStyleMap::MapFillAttachment(StyleResolverState&,
                                      FillLayer* layer,
                                      const CSSValue& value) {}

void CSSToStyleMap::MapFillClip(StyleResolverState&,
                                FillLayer* layer,
                                const CSSValue& value) {}

void CSSToStyleMap::MapFillCompositingOperator(StyleResolverState&,
                                               FillLayer* layer,
                                               const CSSValue& value) {}

void CSSToStyleMap::MapFillBlendMode(StyleResolverState&,
                                     FillLayer* layer,
                                     const CSSValue& value) {}

void CSSToStyleMap::MapFillOrigin(StyleResolverState&,
                                  FillLayer* layer,
                                  const CSSValue& value) {}

void CSSToStyleMap::MapFillImage(StyleResolverState& state,
                                 FillLayer* layer,
                                 const CSSValue& value) {}

void CSSToStyleMap::MapFillRepeat(StyleResolverState&,
                                  FillLayer* layer,
                                  const CSSValue& value) {}

void CSSToStyleMap::MapFillMaskMode(StyleResolverState&,
                                    FillLayer* layer,
                                    const CSSValue& value) {}

void CSSToStyleMap::MapFillSize(StyleResolverState& state,
                                FillLayer* layer,
                                const CSSValue& value) {}

void CSSToStyleMap::MapFillPositionX(StyleResolverState& state,
                                     FillLayer* layer,
                                     const CSSValue& value) {}

void CSSToStyleMap::MapFillPositionY(StyleResolverState& state,
                                     FillLayer* layer,
                                     const CSSValue& value) {}

namespace {

Timing::Delay MapAnimationTimingDelay(const CSSLengthResolver& length_resolver,
                                      const CSSValue& value) {}

}  // namespace

Timing::Delay CSSToStyleMap::MapAnimationDelayStart(StyleResolverState& state,
                                                    const CSSValue& value) {}

Timing::Delay CSSToStyleMap::MapAnimationDelayEnd(const CSSValue& value) {}

Timing::Delay CSSToStyleMap::MapAnimationDelayEnd(StyleResolverState& state,
                                                  const CSSValue& value) {}

Timing::PlaybackDirection CSSToStyleMap::MapAnimationDirection(
    StyleResolverState& state,
    const CSSValue& value) {}

std::optional<double> CSSToStyleMap::MapAnimationDuration(
    StyleResolverState& state,
    const CSSValue& value) {}

Timing::FillMode CSSToStyleMap::MapAnimationFillMode(StyleResolverState& state,
                                                     const CSSValue& value) {}

double CSSToStyleMap::MapAnimationIterationCount(StyleResolverState& state,
                                                 const CSSValue& value) {}

AtomicString CSSToStyleMap::MapAnimationName(StyleResolverState& state,
                                             const CSSValue& value) {}

CSSTransitionData::TransitionBehavior CSSToStyleMap::MapAnimationBehavior(
    StyleResolverState& state,
    const CSSValue& value) {}

StyleTimeline CSSToStyleMap::MapAnimationTimeline(StyleResolverState& state,
                                                  const CSSValue& value) {}

EAnimPlayState CSSToStyleMap::MapAnimationPlayState(StyleResolverState& state,
                                                    const CSSValue& value) {}

namespace {

std::optional<TimelineOffset> MapAnimationRange(StyleResolverState& state,
                                                const CSSValue& value,
                                                double default_percent) {}

}  // namespace

std::optional<TimelineOffset> CSSToStyleMap::MapAnimationRangeStart(
    StyleResolverState& state,
    const CSSValue& value) {}

std::optional<TimelineOffset> CSSToStyleMap::MapAnimationRangeEnd(
    StyleResolverState& state,
    const CSSValue& value) {}

EffectModel::CompositeOperation CSSToStyleMap::MapAnimationComposition(
    StyleResolverState& state,
    const CSSValue& value) {}

CSSTransitionData::TransitionProperty CSSToStyleMap::MapAnimationProperty(
    StyleResolverState& state,
    const CSSValue& value) {}

scoped_refptr<TimingFunction> CSSToStyleMap::MapAnimationTimingFunction(
    const CSSValue& value) {}

scoped_refptr<TimingFunction> CSSToStyleMap::MapAnimationTimingFunction(
    StyleResolverState& state,
    const CSSValue& value) {}

void CSSToStyleMap::MapNinePieceImage(StyleResolverState& state,
                                      CSSPropertyID property,
                                      const CSSValue& value,
                                      NinePieceImage& image) {}

static Length ConvertBorderImageSliceSide(
    const CSSLengthResolver& length_resolver,
    const CSSPrimitiveValue& value) {}

void CSSToStyleMap::MapNinePieceImageSlice(StyleResolverState& state,
                                           const CSSValue& value,
                                           NinePieceImage& image) {}

static BorderImageLength ToBorderImageLength(const StyleResolverState& state,
                                             const CSSValue& value) {}

BorderImageLengthBox CSSToStyleMap::MapNinePieceImageQuad(
    StyleResolverState& state,
    const CSSValue& value) {}

void CSSToStyleMap::MapNinePieceImageRepeat(StyleResolverState&,
                                            const CSSValue& value,
                                            NinePieceImage& image) {}

}  // namespace blink