chromium/third_party/blink/renderer/core/layout/svg/layout_svg_shape.cc

/*
 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <[email protected]>
 * Copyright (C) 2004, 2005, 2008 Rob Buis <[email protected]>
 * Copyright (C) 2005, 2007 Eric Seidel <[email protected]>
 * Copyright (C) 2009 Google, Inc.
 * Copyright (C) 2009 Dirk Schulze <[email protected]>
 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
 * Copyright (C) 2009 Jeff Schiller <[email protected]>
 * Copyright (C) 2011 Renata Hodovan <[email protected]>
 * Copyright (C) 2011 University of Szeged
 *
 * 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/layout/svg/layout_svg_shape.h"

#include "third_party/blink/renderer/core/layout/hit_test_location.h"
#include "third_party/blink/renderer/core/layout/hit_test_result.h"
#include "third_party/blink/renderer/core/layout/pointer_events_hit_rules.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_resource_paint_server.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_root.h"
#include "third_party/blink/renderer/core/layout/svg/svg_layout_info.h"
#include "third_party/blink/renderer/core/layout/svg/svg_layout_support.h"
#include "third_party/blink/renderer/core/layout/svg/svg_resources.h"
#include "third_party/blink/renderer/core/layout/svg/transform_helper.h"
#include "third_party/blink/renderer/core/layout/svg/transformed_hit_test_location.h"
#include "third_party/blink/renderer/core/paint/clip_path_clipper.h"
#include "third_party/blink/renderer/core/paint/svg_shape_painter.h"
#include "third_party/blink/renderer/core/svg/svg_geometry_element.h"
#include "third_party/blink/renderer/core/svg/svg_length_functions.h"
#include "third_party/blink/renderer/platform/graphics/stroke_data.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "ui/gfx/geometry/point_f.h"

namespace blink {

namespace {

void ClampBoundsToFinite(gfx::RectF& bounds) {}

}  // namespace

LayoutSVGShape::LayoutSVGShape(SVGGeometryElement* node)
    :{}

LayoutSVGShape::~LayoutSVGShape() = default;

void LayoutSVGShape::StyleDidChange(StyleDifference diff,
                                    const ComputedStyle* old_style) {}

void LayoutSVGShape::WillBeDestroyed() {}

void LayoutSVGShape::ClearPath() {}

void LayoutSVGShape::CreatePath() {}

float LayoutSVGShape::DashScaleFactor() const {}

namespace {

bool HasMiterJoinStyle(const ComputedStyle& style) {}
bool HasSquareCapStyle(const ComputedStyle& style) {}

bool CanUseSimpleStrokeApproximation(
    LayoutSVGShape::GeometryType geometry_type) {}

bool CanHaveMiters(LayoutSVGShape::GeometryType geometry_type) {}

bool CanHaveMitersOrCaps(LayoutSVGShape::GeometryType geometry_type) {}

}  // namespace

gfx::RectF LayoutSVGShape::ApproximateStrokeBoundingBox(
    const gfx::RectF& shape_bounds) const {}

gfx::RectF LayoutSVGShape::HitTestStrokeBoundingBox() const {}

gfx::RectF LayoutSVGShape::StrokeBoundingBox() const {}

bool LayoutSVGShape::ShapeDependentStrokeContains(
    const HitTestLocation& location) {}

bool LayoutSVGShape::ShapeDependentFillContains(
    const HitTestLocation& location,
    const WindRule fill_rule) const {}

static bool HasPaintServer(const LayoutObject& object, const SVGPaint& paint) {}

bool LayoutSVGShape::FillContains(const HitTestLocation& location,
                                  bool requires_fill,
                                  const WindRule fill_rule) {}

bool LayoutSVGShape::StrokeContains(const HitTestLocation& location,
                                    bool requires_stroke) {}

SVGLayoutResult LayoutSVGShape::UpdateSVGLayout(
    const SVGLayoutInfo& layout_info) {}

bool LayoutSVGShape::UpdateAfterSVGLayout(const SVGLayoutInfo& layout_info,
                                          bool bbox_changed) {}

AffineTransform LayoutSVGShape::ComputeRootTransform() const {}

AffineTransform LayoutSVGShape::ComputeNonScalingStrokeTransform() const {}

void LayoutSVGShape::UpdateNonScalingStrokeData() {}

void LayoutSVGShape::Paint(const PaintInfo& paint_info) const {}

bool LayoutSVGShape::NodeAtPoint(HitTestResult& result,
                                 const HitTestLocation& hit_test_location,
                                 const PhysicalOffset& accumulated_offset,
                                 HitTestPhase phase) {}

bool LayoutSVGShape::HitTestShape(const HitTestRequest& request,
                                  const HitTestLocation& local_location,
                                  PointerEventsHitRules hit_rules) {}

gfx::RectF LayoutSVGShape::CalculateStrokeBoundingBox() const {}

gfx::RectF LayoutSVGShape::CalculateNonScalingStrokeBoundingBox() const {}

float LayoutSVGShape::StrokeWidth() const {}

float LayoutSVGShape::StrokeWidthForMarkerUnits() const {}

LayoutSVGShapeRareData& LayoutSVGShape::EnsureRareData() const {}

RasterEffectOutset LayoutSVGShape::VisualRectOutsetForRasterEffects() const {}

}  // namespace blink