2020-01-18 09:38:21 +01:00
|
|
|
/*
|
2025-04-17 13:39:30 +02:00
|
|
|
* Copyright (c) 2018-2025, Andreas Kling <andreas@ladybird.org>
|
2025-02-05 12:55:02 +00:00
|
|
|
* Copyright (c) 2023-2025, Sam Atkins <sam@ladybird.org>
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2019-09-21 15:32:17 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/HashMap.h>
|
|
|
|
#include <AK/NonnullRefPtr.h>
|
2024-12-20 16:35:12 +01:00
|
|
|
#include <LibGC/CellAllocator.h>
|
2024-11-15 04:01:23 +13:00
|
|
|
#include <LibGC/Ptr.h>
|
2022-04-09 09:28:38 +02:00
|
|
|
#include <LibGfx/Font/Font.h>
|
2023-12-09 23:42:02 +01:00
|
|
|
#include <LibGfx/FontCascadeList.h>
|
2020-02-15 00:10:34 +01:00
|
|
|
#include <LibGfx/Forward.h>
|
2024-12-20 16:35:12 +01:00
|
|
|
#include <LibJS/Heap/Cell.h>
|
2021-05-30 14:23:43 +02:00
|
|
|
#include <LibWeb/CSS/ComputedValues.h>
|
2020-06-24 17:45:42 +02:00
|
|
|
#include <LibWeb/CSS/LengthBox.h>
|
2023-03-25 14:11:11 +00:00
|
|
|
#include <LibWeb/CSS/PropertyID.h>
|
2025-04-17 13:39:30 +02:00
|
|
|
#include <LibWeb/CSS/PseudoClass.h>
|
|
|
|
#include <LibWeb/CSS/PseudoClassBitmap.h>
|
2024-08-02 13:59:19 +02:00
|
|
|
#include <LibWeb/CSS/StyleProperty.h>
|
2025-07-19 19:35:33 -07:00
|
|
|
#include <LibWeb/Export.h>
|
2019-09-21 15:32:17 +03:00
|
|
|
|
2020-07-26 20:01:35 +02:00
|
|
|
namespace Web::CSS {
|
2020-03-07 10:27:02 +01:00
|
|
|
|
2025-07-19 19:35:33 -07:00
|
|
|
class WEB_API ComputedProperties final : public JS::Cell {
|
2024-12-20 16:35:12 +01:00
|
|
|
GC_CELL(ComputedProperties, JS::Cell);
|
|
|
|
GC_DECLARE_ALLOCATOR(ComputedProperties);
|
|
|
|
|
2024-09-10 11:46:32 +02:00
|
|
|
public:
|
2025-04-04 15:08:15 +02:00
|
|
|
static constexpr double normal_line_height_scale = 1.15;
|
2024-09-10 11:46:32 +02:00
|
|
|
|
2024-12-20 16:35:12 +01:00
|
|
|
virtual ~ComputedProperties() override;
|
2020-01-05 16:54:38 +01:00
|
|
|
|
2019-09-21 15:32:17 +03:00
|
|
|
template<typename Callback>
|
|
|
|
inline void for_each_property(Callback callback) const
|
|
|
|
{
|
2024-12-20 16:35:12 +01:00
|
|
|
for (size_t i = 0; i < m_property_values.size(); ++i) {
|
|
|
|
if (m_property_values[i])
|
2025-08-25 16:04:32 +12:00
|
|
|
callback(static_cast<PropertyID>(i + to_underlying(first_longhand_property_id)), *m_property_values[i]);
|
2022-02-18 20:21:49 +01:00
|
|
|
}
|
2019-09-21 15:32:17 +03:00
|
|
|
}
|
|
|
|
|
2024-03-16 07:44:48 +01:00
|
|
|
enum class Inherited {
|
|
|
|
No,
|
|
|
|
Yes
|
|
|
|
};
|
|
|
|
|
2025-08-08 10:11:51 +01:00
|
|
|
HashMap<PropertyID, NonnullRefPtr<StyleValue const>> const& animated_property_values() const { return m_animated_property_values; }
|
2025-05-28 15:12:37 +02:00
|
|
|
void reset_animated_properties(Badge<Animations::KeyframeEffect>);
|
2024-03-16 07:44:48 +01:00
|
|
|
|
2025-02-05 12:57:41 +00:00
|
|
|
bool is_property_important(PropertyID property_id) const;
|
|
|
|
bool is_property_inherited(PropertyID property_id) const;
|
2025-08-20 23:30:31 +12:00
|
|
|
bool is_animated_property_inherited(PropertyID property_id) const;
|
2025-02-05 12:57:41 +00:00
|
|
|
void set_property_important(PropertyID, Important);
|
|
|
|
void set_property_inherited(PropertyID, Inherited);
|
2025-08-20 23:30:31 +12:00
|
|
|
void set_animated_property_inherited(PropertyID, Inherited);
|
2024-03-16 07:44:48 +01:00
|
|
|
|
2025-08-08 10:11:51 +01:00
|
|
|
void set_property(PropertyID, NonnullRefPtr<StyleValue const> value, Inherited = Inherited::No, Important = Important::No);
|
2025-08-20 23:30:31 +12:00
|
|
|
void set_animated_property(PropertyID, NonnullRefPtr<StyleValue const> value, Inherited = Inherited::No);
|
|
|
|
void remove_animated_property(PropertyID);
|
2024-09-19 10:46:32 +01:00
|
|
|
enum class WithAnimationsApplied {
|
|
|
|
No,
|
|
|
|
Yes,
|
|
|
|
};
|
2025-08-08 10:11:51 +01:00
|
|
|
StyleValue const& property(PropertyID, WithAnimationsApplied = WithAnimationsApplied::Yes) const;
|
2025-02-05 12:57:41 +00:00
|
|
|
void revert_property(PropertyID, ComputedProperties const& style_for_revert);
|
|
|
|
|
|
|
|
GC::Ptr<CSSStyleDeclaration const> animation_name_source() const { return m_animation_name_source; }
|
|
|
|
void set_animation_name_source(GC::Ptr<CSSStyleDeclaration const> declaration) { m_animation_name_source = declaration; }
|
|
|
|
|
|
|
|
GC::Ptr<CSSStyleDeclaration const> transition_property_source() const { return m_transition_property_source; }
|
|
|
|
void set_transition_property_source(GC::Ptr<CSSStyleDeclaration const> declaration) { m_transition_property_source = declaration; }
|
|
|
|
|
|
|
|
Size size_value(PropertyID) const;
|
|
|
|
[[nodiscard]] Variant<LengthPercentage, NormalGap> gap_value(PropertyID) const;
|
2025-08-28 02:07:57 +12:00
|
|
|
Length length(PropertyID) const;
|
2025-08-22 03:41:19 +12:00
|
|
|
enum class ClampNegativeLengths {
|
|
|
|
No,
|
|
|
|
Yes,
|
|
|
|
};
|
|
|
|
Optional<LengthPercentage> length_percentage(PropertyID, Layout::NodeWithStyle const&, ClampNegativeLengths) const;
|
2025-09-01 12:51:52 +01:00
|
|
|
LengthBox length_box(PropertyID left_id, PropertyID top_id, PropertyID right_id, PropertyID bottom_id, Layout::NodeWithStyle const&, ClampNegativeLengths, LengthPercentageOrAuto const& default_value) const;
|
2025-07-19 13:28:14 +12:00
|
|
|
Color color_or_fallback(PropertyID, ColorResolutionContext, Color fallback) const;
|
2025-08-15 23:53:15 +01:00
|
|
|
ColorInterpolation color_interpolation() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
PreferredColorScheme color_scheme(PreferredColorScheme, Optional<Vector<String> const&> document_supported_schemes) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
TextAnchor text_anchor() const;
|
|
|
|
TextAlign text_align() const;
|
|
|
|
TextJustify text_justify() const;
|
|
|
|
TextOverflow text_overflow() const;
|
2025-06-27 07:03:05 +01:00
|
|
|
TextRendering text_rendering() const;
|
2025-09-12 12:21:16 +12:00
|
|
|
CSSPixels text_underline_offset() const;
|
2025-09-14 16:04:26 +12:00
|
|
|
TextUnderlinePosition text_underline_position() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Length border_spacing_horizontal(Layout::Node const&) const;
|
|
|
|
Length border_spacing_vertical(Layout::Node const&) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
CaptionSide caption_side() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Clip clip() const;
|
|
|
|
Display display() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
Float float_() const;
|
2025-03-09 13:59:33 +00:00
|
|
|
Color caret_color(Layout::NodeWithStyle const&) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
Clear clear() const;
|
|
|
|
ColumnSpan column_span() const;
|
2023-09-18 15:41:17 +01:00
|
|
|
struct ContentDataAndQuoteNestingLevel {
|
2025-02-05 12:57:41 +00:00
|
|
|
ContentData content_data;
|
2023-09-18 15:41:17 +01:00
|
|
|
u32 final_quote_nesting_level { 0 };
|
|
|
|
};
|
2025-06-17 16:33:23 +01:00
|
|
|
ContentDataAndQuoteNestingLevel content(DOM::AbstractElement&, u32 initial_quote_nesting_level) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
ContentVisibility content_visibility() const;
|
2025-02-20 12:17:29 +00:00
|
|
|
Vector<CursorData> cursor() const;
|
2024-10-01 13:07:06 +01:00
|
|
|
Variant<LengthOrCalculated, NumberOrCalculated> tab_size() const;
|
2025-05-16 18:32:31 +12:00
|
|
|
WhiteSpaceCollapse white_space_collapse() const;
|
2025-05-18 02:21:42 +12:00
|
|
|
WhiteSpaceTrimData white_space_trim() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
WordBreak word_break() const;
|
2025-09-09 16:59:30 +01:00
|
|
|
CSSPixels word_spacing() const;
|
2025-09-09 09:56:53 +01:00
|
|
|
CSSPixels letter_spacing() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
LineStyle line_style(PropertyID) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
OutlineStyle outline_style() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Vector<TextDecorationLine> text_decoration_line() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
TextDecorationStyle text_decoration_style() const;
|
2025-08-27 15:12:17 +01:00
|
|
|
TextDecorationThickness text_decoration_thickness() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
TextTransform text_transform() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Vector<ShadowData> text_shadow(Layout::Node const&) const;
|
2025-05-18 00:49:25 +12:00
|
|
|
TextWrapMode text_wrap_mode() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
ListStyleType list_style_type() const;
|
|
|
|
ListStylePosition list_style_position() const;
|
|
|
|
FlexDirection flex_direction() const;
|
|
|
|
FlexWrap flex_wrap() const;
|
|
|
|
FlexBasis flex_basis() const;
|
2021-10-19 15:22:08 +02:00
|
|
|
float flex_grow() const;
|
|
|
|
float flex_shrink() const;
|
2022-03-31 22:11:38 +02:00
|
|
|
int order() const;
|
2023-03-18 20:49:00 +01:00
|
|
|
Optional<Color> accent_color(Layout::NodeWithStyle const&) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
AlignContent align_content() const;
|
|
|
|
AlignItems align_items() const;
|
|
|
|
AlignSelf align_self() const;
|
|
|
|
Appearance appearance() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Filter backdrop_filter() const;
|
|
|
|
Filter filter() const;
|
2021-10-19 15:27:40 +02:00
|
|
|
float opacity() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
Visibility visibility() const;
|
|
|
|
ImageRendering image_rendering() const;
|
|
|
|
JustifyContent justify_content() const;
|
|
|
|
JustifyItems justify_items() const;
|
|
|
|
JustifySelf justify_self() const;
|
|
|
|
Overflow overflow_x() const;
|
|
|
|
Overflow overflow_y() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Vector<ShadowData> box_shadow(Layout::Node const&) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
BoxSizing box_sizing() const;
|
|
|
|
PointerEvents pointer_events() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Variant<VerticalAlign, LengthPercentage> vertical_align() const;
|
2024-12-05 01:19:03 +01:00
|
|
|
Optional<Gfx::FontVariantAlternates> font_variant_alternates() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
FontVariantCaps font_variant_caps() const;
|
2024-12-05 01:19:03 +01:00
|
|
|
Optional<Gfx::FontVariantEastAsian> font_variant_east_asian() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
FontVariantEmoji font_variant_emoji() const;
|
2024-12-05 01:19:03 +01:00
|
|
|
Optional<Gfx::FontVariantLigatures> font_variant_ligatures() const;
|
|
|
|
Optional<Gfx::FontVariantNumeric> font_variant_numeric() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
FontVariantPosition font_variant_position() const;
|
2025-06-22 18:59:42 +01:00
|
|
|
FontKerning font_kerning() const;
|
2024-09-27 17:11:05 +01:00
|
|
|
Optional<FlyString> font_language_override() const;
|
2024-10-01 09:37:43 +01:00
|
|
|
Optional<HashMap<FlyString, IntegerOrCalculated>> font_feature_settings() const;
|
2024-10-01 09:20:06 +01:00
|
|
|
Optional<HashMap<FlyString, NumberOrCalculated>> font_variation_settings() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
GridTrackSizeList grid_auto_columns() const;
|
|
|
|
GridTrackSizeList grid_auto_rows() const;
|
|
|
|
GridTrackSizeList grid_template_columns() const;
|
|
|
|
GridTrackSizeList grid_template_rows() const;
|
|
|
|
[[nodiscard]] GridAutoFlow grid_auto_flow() const;
|
|
|
|
GridTrackPlacement grid_column_end() const;
|
|
|
|
GridTrackPlacement grid_column_start() const;
|
|
|
|
GridTrackPlacement grid_row_end() const;
|
|
|
|
GridTrackPlacement grid_row_start() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
BorderCollapse border_collapse() const;
|
2025-06-18 12:28:18 +01:00
|
|
|
CSS::EmptyCells empty_cells() const;
|
2023-01-16 18:17:05 +01:00
|
|
|
Vector<Vector<String>> grid_template_areas() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
ObjectFit object_fit() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
ObjectPosition object_position() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
TableLayout table_layout() const;
|
|
|
|
Direction direction() const;
|
|
|
|
UnicodeBidi unicode_bidi() const;
|
|
|
|
WritingMode writing_mode() const;
|
|
|
|
UserSelect user_select() const;
|
|
|
|
Isolation isolation() const;
|
2025-03-16 18:44:49 -07:00
|
|
|
TouchActionData touch_action() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
Containment contain() const;
|
2025-09-30 14:48:55 +01:00
|
|
|
ContainerType container_type() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
MixBlendMode mix_blend_mode() const;
|
2025-02-21 17:56:24 +01:00
|
|
|
Optional<FlyString> view_transition_name() const;
|
2019-09-21 15:32:17 +03:00
|
|
|
|
2025-09-09 00:35:59 +02:00
|
|
|
Display display_before_box_type_transformation() const;
|
|
|
|
void set_display_before_box_type_transformation(Display value);
|
|
|
|
|
2025-08-08 10:11:51 +01:00
|
|
|
static Vector<Transformation> transformations_for_style_value(StyleValue const& value);
|
2025-02-05 12:57:41 +00:00
|
|
|
Vector<Transformation> transformations() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
TransformBox transform_box() const;
|
2025-02-05 12:57:41 +00:00
|
|
|
TransformOrigin transform_origin() const;
|
|
|
|
Optional<Transformation> rotate() const;
|
|
|
|
Optional<Transformation> translate() const;
|
|
|
|
Optional<Transformation> scale() const;
|
2021-09-18 17:20:00 +02:00
|
|
|
|
2025-02-05 12:55:02 +00:00
|
|
|
MaskType mask_type() const;
|
2023-05-19 20:35:39 +01:00
|
|
|
float stop_opacity() const;
|
|
|
|
float fill_opacity() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
StrokeLinecap stroke_linecap() const;
|
|
|
|
StrokeLinejoin stroke_linejoin() const;
|
2024-10-28 20:51:16 -04:00
|
|
|
NumberOrCalculated stroke_miterlimit() const;
|
2023-05-19 20:35:39 +01:00
|
|
|
float stroke_opacity() const;
|
2025-02-05 12:55:02 +00:00
|
|
|
FillRule fill_rule() const;
|
|
|
|
ClipRule clip_rule() const;
|
2025-07-06 21:48:55 +02:00
|
|
|
float flood_opacity() const;
|
2025-08-16 17:48:30 +01:00
|
|
|
CSS::ShapeRendering shape_rendering() const;
|
2025-08-24 15:00:53 +01:00
|
|
|
PaintOrderList paint_order() const;
|
2023-04-19 18:51:00 +01:00
|
|
|
|
2025-08-16 08:39:18 +01:00
|
|
|
WillChange will_change() const;
|
|
|
|
|
2023-12-09 23:42:02 +01:00
|
|
|
Gfx::FontCascadeList const& computed_font_list() const
|
2021-09-23 13:13:51 +02:00
|
|
|
{
|
2024-12-20 16:35:12 +01:00
|
|
|
VERIFY(m_font_list);
|
|
|
|
return *m_font_list;
|
2021-09-23 13:13:51 +02:00
|
|
|
}
|
|
|
|
|
2025-03-16 21:30:19 +01:00
|
|
|
Gfx::Font const& first_available_computed_font() const
|
|
|
|
{
|
|
|
|
VERIFY(m_first_available_computed_font);
|
|
|
|
return *m_first_available_computed_font;
|
|
|
|
}
|
|
|
|
|
2025-04-15 15:48:14 -06:00
|
|
|
void set_computed_font_list(NonnullRefPtr<Gfx::FontCascadeList const> font_list)
|
2021-09-23 13:13:51 +02:00
|
|
|
{
|
2024-12-20 16:35:12 +01:00
|
|
|
m_font_list = move(font_list);
|
2025-03-16 21:30:19 +01:00
|
|
|
// https://drafts.csswg.org/css-fonts/#first-available-font
|
|
|
|
// First font for which the character U+0020 (space) is not excluded by a unicode-range
|
|
|
|
m_first_available_computed_font = m_font_list->font_for_code_point(' ');
|
2021-09-23 13:13:51 +02:00
|
|
|
}
|
|
|
|
|
2025-09-23 20:53:07 +12:00
|
|
|
[[nodiscard]] CSSPixels line_height() const;
|
2025-08-25 13:20:20 +12:00
|
|
|
[[nodiscard]] CSSPixels font_size() const;
|
2025-09-02 01:14:06 +12:00
|
|
|
double font_weight() const;
|
2025-09-02 20:43:10 +12:00
|
|
|
Percentage font_width() const;
|
2025-09-03 18:57:32 +12:00
|
|
|
int font_slope() const;
|
2019-10-12 13:42:58 +02:00
|
|
|
|
2024-12-20 11:32:17 +01:00
|
|
|
bool operator==(ComputedProperties const&) const;
|
2019-10-14 18:32:02 +02:00
|
|
|
|
2025-02-05 12:55:02 +00:00
|
|
|
Positioning position() const;
|
2020-06-15 17:29:35 +02:00
|
|
|
Optional<int> z_index() const;
|
2020-03-23 17:29:15 +01:00
|
|
|
|
2023-09-07 15:29:54 +01:00
|
|
|
void set_math_depth(int math_depth);
|
2024-12-20 16:35:12 +01:00
|
|
|
int math_depth() const { return m_math_depth; }
|
2023-09-07 15:29:54 +01:00
|
|
|
|
2023-09-12 11:34:26 +01:00
|
|
|
QuotesData quotes() const;
|
2024-07-24 15:47:11 +01:00
|
|
|
Vector<CounterData> counter_data(PropertyID) const;
|
2023-09-12 11:34:26 +01:00
|
|
|
|
2025-05-26 22:36:12 +01:00
|
|
|
ScrollbarColorData scrollbar_color(Layout::NodeWithStyle const& layout_node) const;
|
2025-02-05 12:55:02 +00:00
|
|
|
ScrollbarWidth scrollbar_width() const;
|
2024-02-27 09:37:18 +01:00
|
|
|
|
2025-01-02 03:56:05 +03:00
|
|
|
static NonnullRefPtr<Gfx::Font const> font_fallback(bool monospace, bool bold, float point_size);
|
2021-09-23 13:13:51 +02:00
|
|
|
|
2025-04-17 13:39:30 +02:00
|
|
|
bool has_attempted_match_against_pseudo_class(PseudoClass pseudo_class) const
|
|
|
|
{
|
|
|
|
return m_attempted_pseudo_class_matches.get(pseudo_class);
|
|
|
|
}
|
|
|
|
|
|
|
|
void set_attempted_pseudo_class_matches(PseudoClassBitmap const& results)
|
|
|
|
{
|
|
|
|
m_attempted_pseudo_class_matches = results;
|
|
|
|
}
|
2025-01-03 20:39:25 +03:00
|
|
|
|
2019-09-21 15:32:17 +03:00
|
|
|
private:
|
2024-12-20 16:35:12 +01:00
|
|
|
ComputedProperties();
|
|
|
|
|
|
|
|
virtual void visit_edges(Visitor&) override;
|
|
|
|
|
2025-02-05 12:57:41 +00:00
|
|
|
Overflow overflow(PropertyID) const;
|
|
|
|
Vector<ShadowData> shadow(PropertyID, Layout::Node const&) const;
|
2019-10-06 11:23:58 +02:00
|
|
|
|
2025-02-05 12:57:41 +00:00
|
|
|
GC::Ptr<CSSStyleDeclaration const> m_animation_name_source;
|
|
|
|
GC::Ptr<CSSStyleDeclaration const> m_transition_property_source;
|
2024-12-20 16:35:12 +01:00
|
|
|
|
2025-08-25 16:04:32 +12:00
|
|
|
Array<RefPtr<StyleValue const>, number_of_longhand_properties> m_property_values;
|
|
|
|
Array<u8, ceil_div(number_of_longhand_properties, 8uz)> m_property_important {};
|
|
|
|
Array<u8, ceil_div(number_of_longhand_properties, 8uz)> m_property_inherited {};
|
|
|
|
Array<u8, ceil_div(number_of_longhand_properties, 8uz)> m_animated_property_inherited {};
|
2024-12-20 16:35:12 +01:00
|
|
|
|
2025-08-08 10:11:51 +01:00
|
|
|
HashMap<PropertyID, NonnullRefPtr<StyleValue const>> m_animated_property_values;
|
2024-12-20 16:35:12 +01:00
|
|
|
|
2025-09-09 00:35:59 +02:00
|
|
|
Display m_display_before_box_type_transformation { InitialValues::display() };
|
|
|
|
|
2024-12-20 16:35:12 +01:00
|
|
|
int m_math_depth { InitialValues::math_depth() };
|
2025-04-15 15:48:14 -06:00
|
|
|
RefPtr<Gfx::FontCascadeList const> m_font_list;
|
|
|
|
RefPtr<Gfx::Font const> m_first_available_computed_font;
|
2024-12-20 16:35:12 +01:00
|
|
|
|
|
|
|
Optional<CSSPixels> m_line_height;
|
2025-01-03 20:39:25 +03:00
|
|
|
|
2025-04-17 13:39:30 +02:00
|
|
|
PseudoClassBitmap m_attempted_pseudo_class_matches;
|
2019-09-21 15:32:17 +03:00
|
|
|
};
|
2020-03-07 10:27:02 +01:00
|
|
|
|
|
|
|
}
|