#include "third_party/blink/renderer/core/style/style_fetched_image.h"
#include "third_party/blink/renderer/core/css/css_image_value.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/resource/image_resource_content.h"
#include "third_party/blink/renderer/core/paint/timing/image_element_timing.h"
#include "third_party/blink/renderer/core/paint/timing/paint_timing.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/svg/graphics/svg_image_for_container.h"
#include "third_party/blink/renderer/platform/graphics/bitmap_image.h"
namespace blink {
StyleFetchedImage::StyleFetchedImage(ImageResourceContent* image,
const Document& document,
bool is_lazyload_possibly_deferred,
bool origin_clean,
bool is_ad_related,
const KURL& url,
const float override_image_resolution)
: … { … }
StyleFetchedImage::~StyleFetchedImage() = default;
void StyleFetchedImage::Prefinalize() { … }
bool StyleFetchedImage::IsEqual(const StyleImage& other) const { … }
WrappedImagePtr StyleFetchedImage::Data() const { … }
float StyleFetchedImage::ImageScaleFactor() const { … }
ImageResourceContent* StyleFetchedImage::CachedImage() const { … }
CSSValue* StyleFetchedImage::CssValue() const { … }
CSSValue* StyleFetchedImage::ComputedCSSValue(const ComputedStyle&,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool StyleFetchedImage::CanRender() const { … }
bool StyleFetchedImage::IsLoaded() const { … }
bool StyleFetchedImage::IsLoading() const { … }
bool StyleFetchedImage::ErrorOccurred() const { … }
bool StyleFetchedImage::IsAccessAllowed(String& failing_url) const { … }
float StyleFetchedImage::ApplyImageResolution(float multiplier) const { … }
gfx::SizeF StyleFetchedImage::ImageSize(
float multiplier,
const gfx::SizeF& default_object_size,
RespectImageOrientationEnum respect_orientation) const { … }
IntrinsicSizingInfo StyleFetchedImage::GetNaturalSizingInfo(
float multiplier,
RespectImageOrientationEnum respect_orientation) const { … }
bool StyleFetchedImage::HasIntrinsicSize() const { … }
void StyleFetchedImage::AddClient(ImageResourceObserver* observer) { … }
void StyleFetchedImage::RemoveClient(ImageResourceObserver* observer) { … }
void StyleFetchedImage::ImageNotifyFinished(ImageResourceContent*) { … }
scoped_refptr<Image> StyleFetchedImage::GetImage(
const ImageResourceObserver&,
const Document& document,
const ComputedStyle& style,
const gfx::SizeF& target_size) const { … }
bool StyleFetchedImage::KnownToBeOpaque(const Document&,
const ComputedStyle&) const { … }
void StyleFetchedImage::LoadDeferredImage(const Document& document) { … }
RespectImageOrientationEnum StyleFetchedImage::ForceOrientationIfNecessary(
RespectImageOrientationEnum default_orientation) const { … }
bool StyleFetchedImage::GetImageAnimationPolicy(
mojom::blink::ImageAnimationPolicy& policy) { … }
void StyleFetchedImage::Trace(Visitor* visitor) const { … }
}