#include "third_party/blink/renderer/core/svg/graphics/svg_image_for_container.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/layout/intrinsic_sizing_info.h"
#include "third_party/blink/renderer/core/svg/graphics/svg_image.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "ui/gfx/geometry/size_conversions.h"
namespace blink {
const SVGImageViewInfo* SVGImageForContainer::CreateViewInfo(
SVGImage& image,
const String& fragment) { … }
const SVGImageViewInfo* SVGImageForContainer::CreateViewInfo(SVGImage& image,
const KURL& url) { … }
const SVGImageViewInfo* SVGImageForContainer::CreateViewInfo(
SVGImage& image,
const Element& element) { … }
const SVGImageViewInfo* SVGImageForContainer::CreateViewInfo(SVGImage& image,
const Node* node) { … }
bool SVGImageForContainer::GetNaturalDimensions(
SVGImage& image,
const SVGImageViewInfo* info,
IntrinsicSizingInfo& sizing_info) { … }
gfx::SizeF SVGImageForContainer::ConcreteObjectSize(
SVGImage& image,
const SVGImageViewInfo* info,
const gfx::SizeF& default_object_size) { … }
gfx::Size SVGImageForContainer::SizeWithConfig(SizeConfig config) const { … }
gfx::SizeF SVGImageForContainer::SizeWithConfigAsFloat(SizeConfig) const { … }
SVGImageForContainer::SVGImageForContainer(SVGImage& image,
const gfx::SizeF& container_size,
float zoom,
const SVGImageViewInfo* viewinfo)
: … { … }
SVGImageForContainer::SVGImageForContainer(
SVGImage& image,
const gfx::SizeF& container_size,
float zoom,
const SVGImageViewInfo* viewinfo,
mojom::blink::PreferredColorScheme preferred_color_scheme)
: … { … }
bool SVGImageForContainer::HasIntrinsicSize() const { … }
void SVGImageForContainer::Draw(cc::PaintCanvas* canvas,
const cc::PaintFlags& flags,
const gfx::RectF& dst_rect,
const gfx::RectF& src_rect,
const ImageDrawOptions& draw_options) { … }
void SVGImageForContainer::DrawPattern(GraphicsContext& context,
const cc::PaintFlags& flags,
const gfx::RectF& dst_rect,
const ImageTilingInfo& tiling_info,
const ImageDrawOptions& draw_options) { … }
bool SVGImageForContainer::ApplyShader(cc::PaintFlags& flags,
const SkMatrix& local_matrix,
const gfx::RectF& src_rect,
const ImageDrawOptions& draw_options) { … }
PaintImage SVGImageForContainer::PaintImageForCurrentFrame() { … }
}