#include "third_party/blink/renderer/core/css/parser/sizes_attribute_parser.h"
#include "third_party/blink/renderer/core/css/media_query_evaluator.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/core/css/parser/sizes_math_function_parser.h"
#include "third_party/blink/renderer/core/css/properties/css_parsing_utils.h"
#include "third_party/blink/renderer/core/media_type_names.h"
namespace blink {
SizesAttributeParser::SizesAttributeParser(
MediaValues* media_values,
const String& attribute,
const ExecutionContext* execution_context,
const HTMLImageElement* img)
: … { … }
bool SizesAttributeParser::Parse(CSSParserTokenRange range,
const CSSParserTokenOffsets& offsets) { … }
bool SizesAttributeParser::CalculateLengthInPixels(CSSParserTokenRange range,
float& result) { … }
bool SizesAttributeParser::MediaConditionMatches(
const MediaQuerySet& media_condition) { … }
float SizesAttributeParser::Size() { … }
float SizesAttributeParser::EffectiveSize() { … }
float SizesAttributeParser::EffectiveSizeDefaultValue() { … }
bool SizesAttributeParser::IsAuto() { … }
}