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

/*
 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <[email protected]>
 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <[email protected]>
 * Copyright (C) 2007 Apple Inc. 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/svg/svg_length_functions.h"

#include <cmath>

#include "third_party/blink/renderer/core/layout/svg/layout_svg_hidden_container.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_root.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_viewport_container.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/svg/svg_element.h"
#include "third_party/blink/renderer/core/svg/svg_symbol_element.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "ui/gfx/geometry/size_f.h"
#include "ui/gfx/geometry/vector2d_f.h"

namespace blink {

SVGViewportResolver::SVGViewportResolver(const SVGElement& context)
    :{}

gfx::SizeF SVGViewportResolver::ResolveViewport() const {}

float SVGViewportResolver::ViewportDimension(SVGLengthMode mode) const {}

float ValueForLength(const Length& length, float zoom, float dimension) {}

float ValueForLength(const Length& length,
                     const ComputedStyle& style,
                     float dimension) {}

float ValueForLength(const Length& length,
                     const SVGViewportResolver& viewport_resolver,
                     float zoom,
                     SVGLengthMode mode) {}

float ValueForLength(const Length& length,
                     const SVGViewportResolver& viewport_resolver,
                     const ComputedStyle& style,
                     SVGLengthMode mode) {}

float ValueForLength(const UnzoomedLength& unzoomed_length,
                     const SVGViewportResolver& viewport_resolver,
                     SVGLengthMode mode) {}

gfx::Vector2dF VectorForLengthPair(const Length& x_length,
                                   const Length& y_length,
                                   float zoom,
                                   const gfx::SizeF& viewport_size) {}

gfx::Vector2dF VectorForLengthPair(const Length& x_length,
                                   const Length& y_length,
                                   const SVGViewportResolver& viewport_resolver,
                                   const ComputedStyle& style) {}

}  // namespace blink