#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/memory/values_equivalent.h"
#include "third_party/blink/renderer/core/animation/timeline_offset.h"
#include "third_party/blink/renderer/core/css/css_content_distribution_value.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_initial_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_pending_system_font_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value_mappings.h"
#include "third_party/blink/renderer/core/css/css_property_value.h"
#include "third_party/blink/renderer/core/css/css_value_pair.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_fast_paths.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_local_context.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_save_point.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token_stream.h"
#include "third_party/blink/renderer/core/css/parser/font_variant_alternates_parser.h"
#include "third_party/blink/renderer/core/css/parser/font_variant_east_asian_parser.h"
#include "third_party/blink/renderer/core/css/parser/font_variant_ligatures_parser.h"
#include "third_party/blink/renderer/core/css/parser/font_variant_numeric_parser.h"
#include "third_party/blink/renderer/core/css/properties/computed_style_utils.h"
#include "third_party/blink/renderer/core/css/properties/css_parsing_utils.h"
#include "third_party/blink/renderer/core/css/properties/longhand.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/css/properties/shorthands.h"
#include "third_party/blink/renderer/core/css/zoom_adjusted_pixel_value.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/style_property_shorthand.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace blink {
namespace css_shorthand {
namespace {
bool IsResetOnlyAnimationProperty(CSSPropertyID property) { … }
CSSValue* ConsumeAnimationValue(CSSPropertyID property,
CSSParserTokenStream& stream,
const CSSParserContext& context,
bool use_legacy_parsing) { … }
bool ParseAnimationShorthand(const StylePropertyShorthand& shorthand,
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) { … }
const CSSValue* CSSValueFromComputedAnimation(
const StylePropertyShorthand& shorthand,
const CSSAnimationData* animation_data) { … }
bool ParseBackgroundOrMaskPosition(
const StylePropertyShorthand& shorthand,
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
std::optional<WebFeature> three_value_position,
HeapVector<CSSPropertyValue, 64>& properties) { … }
}
bool Animation::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Animation::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool AlternativeAnimationWithTimeline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue*
AlternativeAnimationWithTimeline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
bool ConsumeAnimationRangeItemInto(CSSParserTokenStream& stream,
const CSSParserContext& context,
CSSValueList* start_list,
CSSValueList* end_list) { … }
}
bool AnimationRange::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* AnimationRange::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Background::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Background::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BackgroundPosition::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BackgroundPosition::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderBlockColor::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderBlockColor::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderBlockEnd::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool BorderBlockStart::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool BorderBlockStyle::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderBlockStyle::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderBlockWidth::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderBlockWidth::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderBottom::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderBottom::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderColor::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderColor::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Border::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Border::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderImage::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderImage::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderInlineColor::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderInlineColor::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderInlineEnd::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool BorderInlineStart::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool BorderInlineStyle::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderInlineStyle::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderInlineWidth::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderInlineWidth::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderLeft::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderLeft::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderRadius::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderRadius::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderRight::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderRight::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderSpacing::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderSpacing::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderStyle::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderStyle::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderTop::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderTop::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool BorderWidth::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* BorderWidth::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ColumnRule::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ColumnRule::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Columns::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Columns::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ContainIntrinsicSize::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ContainIntrinsicSize::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Container::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Container::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Flex::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Flex::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool FlexFlow::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* FlexFlow::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
bool ConsumeSystemFont(bool important,
CSSParserTokenStream& stream,
HeapVector<CSSPropertyValue, 64>& properties) { … }
bool ConsumeFont(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
HeapVector<CSSPropertyValue, 64>& properties) { … }
}
bool Font::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Font::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool FontVariant::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* FontVariant::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool FontSynthesis::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* FontSynthesis::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Gap::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Gap::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool GridArea::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* GridArea::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool GridColumn::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* GridColumn::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
CSSValueList* ConsumeImplicitAutoFlow(
CSSParserTokenStream& stream,
const CSSIdentifierValue& flow_direction) { … }
}
bool Grid::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool Grid::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* Grid::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool GridRow::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* GridRow::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool GridTemplate::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool GridTemplate::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* GridTemplate::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool InsetBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* InsetBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool InsetBlock::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
bool Inset::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Inset::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Inset::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
bool InsetInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* InsetInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool InsetInline::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
bool ListStyle::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ListStyle::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool MarginBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool MarginBlock::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* MarginBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Margin::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool Margin::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* Margin::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool MarginInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool MarginInline::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* MarginInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Marker::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Marker::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool MasonryTrack::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* MasonryTrack::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Offset::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Offset::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Outline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Outline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Overflow::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Overflow::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool OverscrollBehavior::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* OverscrollBehavior::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PaddingBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PaddingBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Padding::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
bool Padding::IsLayoutDependent(const ComputedStyle* style,
LayoutObject* layout_object) const { … }
const CSSValue* Padding::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PaddingInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PaddingInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PageBreakAfter::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PageBreakAfter::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PageBreakBefore::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PageBreakBefore::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PageBreakInside::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PageBreakInside::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PlaceContent::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PlaceContent::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PlaceItems::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PlaceItems::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool PlaceSelf::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PlaceSelf::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
bool ParsePositionTryShorthand(const StylePropertyShorthand& shorthand,
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) { … }
}
bool PositionTry::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* PositionTry::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool AlternativePositionTry::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* AlternativePositionTry::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollMarginBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollMarginBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollMargin::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollMargin::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollMarginInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollMarginInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollPaddingBlock::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollPaddingBlock::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollPadding::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollPadding::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollPaddingInline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollPaddingInline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
bool ConsumeTimelineItemInto(CSSParserTokenStream& stream,
const CSSParserContext& context,
CSSValueList* name_list,
CSSValueList* axis_list,
CSSValueList* inset_list) { … }
bool ParseTimelineShorthand(CSSPropertyID shorthand_id,
const StylePropertyShorthand& shorthand,
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) { … }
static CSSValue* CSSValueForTimelineShorthand(
const HeapVector<Member<const ScopedCSSName>>& name_vector,
const Vector<TimelineAxis>& axis_vector,
const Vector<TimelineInset>* inset_vector,
const ComputedStyle& style) { … }
}
bool ScrollStart::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollStart::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollStartTarget::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollStartTarget::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ScrollTimeline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ScrollTimeline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool TextDecoration::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* TextDecoration::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool TextWrap::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* TextWrap::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
namespace {
CSSValue* ConsumeTransitionValue(CSSPropertyID property,
CSSParserTokenStream& stream,
const CSSParserContext& context,
bool use_legacy_parsing) { … }
}
bool Transition::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Transition::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool ViewTimeline::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* ViewTimeline::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WebkitColumnBreakAfter::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WebkitColumnBreakAfter::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WebkitColumnBreakBefore::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WebkitColumnBreakBefore::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WebkitColumnBreakInside::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext&,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WebkitColumnBreakInside::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WebkitMaskBoxImage::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WebkitMaskBoxImage::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool Mask::ParseShorthand(bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* Mask::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool MaskPosition::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext& local_context,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* MaskPosition::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject*,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool TextBox::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* TextBox::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool TextEmphasis::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* TextEmphasis::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool TextSpacing::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* TextSpacing::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WebkitTextStroke::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WebkitTextStroke::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
bool WhiteSpace::ParseShorthand(
bool important,
CSSParserTokenStream& stream,
const CSSParserContext& context,
const CSSParserLocalContext&,
HeapVector<CSSPropertyValue, 64>& properties) const { … }
const CSSValue* WhiteSpace::CSSValueFromComputedStyleInternal(
const ComputedStyle& style,
const LayoutObject* layout_object,
bool allow_visited_style,
CSSValuePhase value_phase) const { … }
}
}