#include "third_party/blink/renderer/core/css/resolver/element_style_resources.h"
#include "third_party/blink/renderer/core/css/css_crossfade_value.h"
#include "third_party/blink/renderer/core/css/css_gradient_value.h"
#include "third_party/blink/renderer/core/css/css_image_set_option_value.h"
#include "third_party/blink/renderer/core/css/css_image_set_value.h"
#include "third_party/blink/renderer/core/css/css_image_value.h"
#include "third_party/blink/renderer/core/css/css_paint_value.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/css/css_uri_value.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/dom/tree_scope.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/lazy_image_helper.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/style/content_data.h"
#include "third_party/blink/renderer/core/style/cursor_data.h"
#include "third_party/blink/renderer/core/style/fill_layer.h"
#include "third_party/blink/renderer/core/style/filter_operation.h"
#include "third_party/blink/renderer/core/style/style_crossfade_image.h"
#include "third_party/blink/renderer/core/style/style_fetched_image.h"
#include "third_party/blink/renderer/core/style/style_generated_image.h"
#include "third_party/blink/renderer/core/style/style_image.h"
#include "third_party/blink/renderer/core/style/style_image_set.h"
#include "third_party/blink/renderer/core/style/style_mask_source_image.h"
#include "third_party/blink/renderer/core/style/style_pending_image.h"
#include "third_party/blink/renderer/core/svg/svg_tree_scope_resources.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/loader/fetch/cross_origin_attribute_value.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_parameters.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
namespace blink {
namespace {
class StyleImageLoader { … };
StyleImage* StyleImageLoader::Load(
CSSValue& value,
FetchParameters::ImageRequestBehavior image_request_behavior,
CrossOriginAttributeValue cross_origin,
const float override_image_resolution) { … }
StyleImage* StyleImageLoader::CrossfadeArgument(
CSSValue& value,
CrossOriginAttributeValue cross_origin) { … }
StyleImage* StyleImageLoader::ResolveImageSet(
CSSImageSetValue& image_set_value,
FetchParameters::ImageRequestBehavior image_request_behavior,
CrossOriginAttributeValue cross_origin) { … }
}
const PreCachedContainerSizes::ContainerSizes& PreCachedContainerSizes::Get()
const { … }
ElementStyleResources::ElementStyleResources(Element& element,
float device_scale_factor)
: … { … }
bool ElementStyleResources::IsPending(const CSSValue& value) const { … }
StyleImage* ElementStyleResources::CachedStyleImage(
const CSSValue& value) const { … }
StyleImage* ElementStyleResources::GetStyleImage(CSSPropertyID property,
const CSSValue& value) { … }
static bool AllowExternalResources(CSSPropertyID property) { … }
SVGResource* ElementStyleResources::GetSVGResourceFromValue(
CSSPropertyID property,
const cssvalue::CSSURIValue& value) { … }
static void LoadResourcesForFilter(
FilterOperations::FilterOperationVector& filter_operations,
Document& document) { … }
void ElementStyleResources::LoadPendingSVGResources(
ComputedStyleBuilder& builder) { … }
static CSSValue* PendingCssValue(StyleImage* style_image) { … }
StyleImage* ElementStyleResources::LoadMaskSource(CSSValue& pending_value) { … }
void ElementStyleResources::LoadPendingImages(ComputedStyleBuilder& builder) { … }
void ElementStyleResources::LoadPendingResources(
ComputedStyleBuilder& builder) { … }
void ElementStyleResources::UpdateLengthConversionData(
const CSSToLengthConversionData* conversion_data) { … }
}