chromium/third_party/blink/renderer/core/svg/svg_path_parser.cc

/*
 * Copyright (C) 2002, 2003 The Karbon Developers
 * Copyright (C) 2006 Alexander Kellett <[email protected]>
 * Copyright (C) 2006, 2007 Rob Buis <[email protected]>
 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
 * Copyright (C) Research In Motion Limited 2010. 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/svg/svg_path_parser.h"

#include "base/notreached.h"
#include "third_party/blink/renderer/core/svg/svg_path_consumer.h"
#include "third_party/blink/renderer/platform/transforms/affine_transform.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"

namespace blink {

static gfx::PointF ReflectedPoint(const gfx::PointF& reflect_in,
                                  const gfx::PointF& point_to_reflect) {}

// Blend the points with a ratio (1/3):(2/3).
static gfx::PointF BlendPoints(const gfx::PointF& p1, const gfx::PointF& p2) {}

static inline bool IsCubicCommand(SVGPathSegType command) {}

static inline bool IsQuadraticCommand(SVGPathSegType command) {}

void SVGPathNormalizer::EmitSegment(const PathSegmentData& segment) {}

// This works by converting the SVG arc to "simple" beziers.
// Partly adapted from Niko's code in kdelibs/kdecore/svgicons.
// See also SVG implementation notes:
// http://www.w3.org/TR/SVG/implnote.html#ArcConversionEndpointToCenter
bool SVGPathNormalizer::DecomposeArcToCubic(
    const gfx::PointF& current_point,
    const PathSegmentData& arc_segment) {}

void SVGPathAbsolutizer::EmitSegment(const PathSegmentData& segment) {}

}  // namespace blink