#include "third_party/blink/renderer/core/layout/layout_image_resource.h"
#include "third_party/blink/public/resources/grit/blink_image_resources.h"
#include "third_party/blink/renderer/core/css/style_engine.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/layout/layout_image.h"
#include "third_party/blink/renderer/core/svg/graphics/svg_image_for_container.h"
#include "ui/base/resource/resource_scale_factor.h"
namespace blink {
namespace {
gfx::SizeF ApplyClampedZoom(gfx::SizeF size, float multiplier) { … }
}
LayoutImageResource::LayoutImageResource()
: … { … }
LayoutImageResource::~LayoutImageResource() = default;
void LayoutImageResource::Trace(Visitor* visitor) const { … }
void LayoutImageResource::Initialize(LayoutObject* layout_object) { … }
void LayoutImageResource::Shutdown() { … }
void LayoutImageResource::SetImageResource(ImageResourceContent* new_image) { … }
ResourcePriority LayoutImageResource::ComputeResourcePriority() const { … }
void LayoutImageResource::ResetAnimation() { … }
bool LayoutImageResource::HasIntrinsicSize() const { … }
RespectImageOrientationEnum LayoutImageResource::ImageOrientation() const { … }
IntrinsicSizingInfo LayoutImageResource::GetNaturalDimensions(
float multiplier) const { … }
gfx::SizeF LayoutImageResource::ImageSize(float multiplier) const { … }
gfx::SizeF LayoutImageResource::ConcreteObjectSize(
float multiplier,
const gfx::SizeF& default_object_size) const { … }
Image* LayoutImageResource::BrokenImage(double device_pixel_ratio) { … }
double LayoutImageResource::DevicePixelRatio() const { … }
void LayoutImageResource::UseBrokenImage() { … }
scoped_refptr<Image> LayoutImageResource::GetImage(
const gfx::Size& container_size) const { … }
scoped_refptr<Image> LayoutImageResource::GetImage(
const gfx::SizeF& container_size) const { … }
bool LayoutImageResource::MaybeAnimated() const { … }
}