#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/style/style_crossfade_image.h"
#include "third_party/blink/renderer/core/css/css_crossfade_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/style/style_generated_image.h"
#include "third_party/blink/renderer/platform/graphics/crossfade_generated_image.h"
namespace blink {
StyleCrossfadeImage::StyleCrossfadeImage(cssvalue::CSSCrossfadeValue& value,
HeapVector<Member<StyleImage>> images)
: … { … }
StyleCrossfadeImage::~StyleCrossfadeImage() = default;
bool StyleCrossfadeImage::IsEqual(const StyleImage& other) const { … }
CSSValue* StyleCrossfadeImage::CssValue() const { … }
CSSValue* StyleCrossfadeImage::ComputedCSSValue(
const ComputedStyle& style,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool StyleCrossfadeImage::CanRender() const { … }
bool StyleCrossfadeImage::IsLoading() const { … }
bool StyleCrossfadeImage::IsLoaded() const { … }
bool StyleCrossfadeImage::ErrorOccurred() const { … }
bool StyleCrossfadeImage::IsAccessAllowed(String& failing_url) const { … }
bool StyleCrossfadeImage::AnyImageIsNone() const { … }
static bool ParticipatesInSizing(const CSSValue* image) { … }
static bool ParticipatesInSizing(const StyleImage& image) { … }
IntrinsicSizingInfo StyleCrossfadeImage::GetNaturalSizingInfo(
float multiplier,
RespectImageOrientationEnum respect_orientation) const { … }
gfx::SizeF StyleCrossfadeImage::ImageSize(float multiplier,
const gfx::SizeF& default_object_size,
RespectImageOrientationEnum) const { … }
bool StyleCrossfadeImage::HasIntrinsicSize() const { … }
void StyleCrossfadeImage::AddClient(ImageResourceObserver* observer) { … }
void StyleCrossfadeImage::RemoveClient(ImageResourceObserver* observer) { … }
scoped_refptr<Image> StyleCrossfadeImage::GetImage(
const ImageResourceObserver& observer,
const Document& document,
const ComputedStyle& style,
const gfx::SizeF& target_size) const { … }
WrappedImagePtr StyleCrossfadeImage::Data() const { … }
bool StyleCrossfadeImage::KnownToBeOpaque(const Document& document,
const ComputedStyle& style) const { … }
std::vector<float> StyleCrossfadeImage::ComputeWeights(bool for_sizing) const { … }
void StyleCrossfadeImage::Trace(Visitor* visitor) const { … }
}