chromium/third_party/blink/renderer/core/css/css_basic_shape_values.cc

/*
 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above
 *    copyright notice, this list of conditions and the following
 *    disclaimer.
 * 2. Redistributions in binary form must reproduce the above
 *    copyright notice, this list of conditions and the following
 *    disclaimer in the documentation and/or other materials
 *    provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#include "third_party/blink/renderer/core/css/css_basic_shape_values.h"

#include "base/check.h"
#include "third_party/blink/renderer/core/css/css_identifier_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_value_pair.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"

namespace blink {
namespace cssvalue {

static String BuildCircleString(const String& radius,
                                const String& center_x,
                                const String& center_y,
                                bool has_explicit_center) {}

static String SerializePositionOffset(const CSSValuePair& offset,
                                      const CSSValuePair& other) {}

static CSSValuePair* BuildSerializablePositionOffset(CSSValue* offset,
                                                     CSSValueID default_side) {}

String CSSBasicShapeCircleValue::CustomCSSText() const {}

bool CSSBasicShapeCircleValue::Equals(
    const CSSBasicShapeCircleValue& other) const {}

void CSSBasicShapeCircleValue::TraceAfterDispatch(
    blink::Visitor* visitor) const {}

static String BuildEllipseString(const String& radius_x,
                                 const String& radius_y,
                                 const String& center_x,
                                 const String& center_y,
                                 bool has_explicit_center) {}

String CSSBasicShapeEllipseValue::CustomCSSText() const {}

bool CSSBasicShapeEllipseValue::Equals(
    const CSSBasicShapeEllipseValue& other) const {}

void CSSBasicShapeEllipseValue::TraceAfterDispatch(
    blink::Visitor* visitor) const {}

static String BuildPolygonString(const WindRule& wind_rule,
                                 const Vector<String>& points) {}

String CSSBasicShapePolygonValue::CustomCSSText() const {}

bool CSSBasicShapePolygonValue::Equals(
    const CSSBasicShapePolygonValue& other) const {}

void CSSBasicShapePolygonValue::TraceAfterDispatch(
    blink::Visitor* visitor) const {}

static bool BuildInsetRadii(Vector<String>& radii,
                            const String& top_left_radius,
                            const String& top_right_radius,
                            const String& bottom_right_radius,
                            const String& bottom_left_radius) {}

static void AppendRoundedCorners(const char* separator,
                                 const String& top_left_radius_width,
                                 const String& top_left_radius_height,
                                 const String& top_right_radius_width,
                                 const String& top_right_radius_height,
                                 const String& bottom_right_radius_width,
                                 const String& bottom_right_radius_height,
                                 const String& bottom_left_radius_width,
                                 const String& bottom_left_radius_height,
                                 StringBuilder& result) {}

static String BuildRectStringCommon(const char* opening,
                                    bool show_left_arg,
                                    const String& top,
                                    const String& right,
                                    const String& bottom,
                                    const String& left,
                                    const String& top_left_radius_width,
                                    const String& top_left_radius_height,
                                    const String& top_right_radius_width,
                                    const String& top_right_radius_height,
                                    const String& bottom_right_radius_width,
                                    const String& bottom_right_radius_height,
                                    const String& bottom_left_radius_width,
                                    const String& bottom_left_radius_height) {}

static String BuildXYWHString(const String& x,
                              const String& y,
                              const String& width,
                              const String& height,
                              const String& top_left_radius_width,
                              const String& top_left_radius_height,
                              const String& top_right_radius_width,
                              const String& top_right_radius_height,
                              const String& bottom_right_radius_width,
                              const String& bottom_right_radius_height,
                              const String& bottom_left_radius_width,
                              const String& bottom_left_radius_height) {}

static inline void UpdateCornerRadiusWidthAndHeight(
    const CSSValuePair* corner_radius,
    String& width,
    String& height) {}

String CSSBasicShapeInsetValue::CustomCSSText() const {}

bool CSSBasicShapeInsetValue::Equals(
    const CSSBasicShapeInsetValue& other) const {}

void CSSBasicShapeInsetValue::TraceAfterDispatch(
    blink::Visitor* visitor) const {}

String CSSBasicShapeRectValue::CustomCSSText() const {}

bool CSSBasicShapeRectValue::Equals(const CSSBasicShapeRectValue& other) const {}

void CSSBasicShapeRectValue::TraceAfterDispatch(blink::Visitor* visitor) const {}

void CSSBasicShapeRectValue::Validate() const {}

String CSSBasicShapeXYWHValue::CustomCSSText() const {}

bool CSSBasicShapeXYWHValue::Equals(const CSSBasicShapeXYWHValue& other) const {}

void CSSBasicShapeXYWHValue::TraceAfterDispatch(blink::Visitor* visitor) const {}

void CSSBasicShapeXYWHValue::Validate() const {}

}  // namespace cssvalue
}  // namespace blink