chromium/third_party/blink/renderer/core/html/canvas/image_element_base.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/html/canvas/image_element_base.h"

#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/imagebitmap/image_bitmap.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/loader/image_loader.h"
#include "third_party/blink/renderer/core/svg/graphics/svg_image_for_container.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"

namespace blink {

// static
Image::ImageDecodingMode ImageElementBase::ParseImageDecodingMode(
    const AtomicString& async_attr_value) {}

ImageResourceContent* ImageElementBase::CachedImage() const {}

const Element& ImageElementBase::GetElement() const {}

mojom::blink::PreferredColorScheme ImageElementBase::PreferredColorScheme()
    const {}

bool ImageElementBase::IsSVGSource() const {}

bool ImageElementBase::IsImageElement() const {}

scoped_refptr<Image> ImageElementBase::GetSourceImageForCanvas(
    FlushReason,
    SourceImageStatus* status,
    const gfx::SizeF& default_object_size,
    const AlphaDisposition alpha_disposition) {}

bool ImageElementBase::WouldTaintOrigin() const {}

gfx::SizeF ImageElementBase::ElementSize(
    const gfx::SizeF& default_object_size,
    const RespectImageOrientationEnum respect_orientation) const {}

gfx::SizeF ImageElementBase::DefaultDestinationSize(
    const gfx::SizeF& default_object_size,
    const RespectImageOrientationEnum respect_orientation) const {}

bool ImageElementBase::IsAccelerated() const {}

const KURL& ImageElementBase::SourceURL() const {}

bool ImageElementBase::IsOpaque() const {}

gfx::Size ImageElementBase::BitmapSourceSize() const {}

static bool HasDimensionsForImage(SVGImage& svg_image,
                                  std::optional<gfx::Rect> crop_rect,
                                  const ImageBitmapOptions* options) {}

ScriptPromise<ImageBitmap> ImageElementBase::CreateImageBitmap(
    ScriptState* script_state,
    std::optional<gfx::Rect> crop_rect,
    const ImageBitmapOptions* options,
    ExceptionState& exception_state) {}

Image::ImageDecodingMode ImageElementBase::GetDecodingModeForPainting(
    PaintImage::Id new_id) {}

}  // namespace blink