mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Everywhere: Remove needless trailing semi-colons after functions
This is a new option in clang-format-16.
This commit is contained in:
parent
aff81d318b
commit
c911781c21
243 changed files with 483 additions and 481 deletions
|
@ -34,7 +34,7 @@ public:
|
|||
CSSStyleSheet* style_sheet_for_bindings() { return m_style_sheet; }
|
||||
void set_style_sheet(CSSStyleSheet* style_sheet) { m_style_sheet = style_sheet; }
|
||||
|
||||
virtual Type type() const override { return Type::Import; };
|
||||
virtual Type type() const override { return Type::Import; }
|
||||
|
||||
private:
|
||||
CSSImportRule(AK::URL, DOM::Document&);
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
virtual ~CSSKeyframeRule() = default;
|
||||
|
||||
virtual Type type() const override { return Type::Keyframe; };
|
||||
virtual Type type() const override { return Type::Keyframe; }
|
||||
|
||||
CSS::Percentage key() const { return m_key; }
|
||||
JS::NonnullGCPtr<CSSStyleDeclaration> style() const { return m_declarations; }
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
|
||||
virtual ~CSSKeyframesRule() = default;
|
||||
|
||||
virtual Type type() const override { return Type::Keyframes; };
|
||||
virtual Type type() const override { return Type::Keyframes; }
|
||||
|
||||
Vector<JS::NonnullGCPtr<CSSKeyframeRule>> const& keyframes() const { return m_keyframes; }
|
||||
FlyString const& name() const { return m_name; }
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
|
||||
virtual ~CSSMediaRule() = default;
|
||||
|
||||
virtual Type type() const override { return Type::Media; };
|
||||
virtual Type type() const override { return Type::Media; }
|
||||
|
||||
virtual DeprecatedString condition_text() const override;
|
||||
virtual void set_condition_text(DeprecatedString) override;
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
Vector<NonnullRefPtr<Selector>> const& selectors() const { return m_selectors; }
|
||||
CSSStyleDeclaration const& declaration() const { return m_declaration; }
|
||||
|
||||
virtual Type type() const override { return Type::Style; };
|
||||
virtual Type type() const override { return Type::Style; }
|
||||
|
||||
DeprecatedString selector_text() const;
|
||||
void set_selector_text(StringView);
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
virtual ~CSSSupportsRule() = default;
|
||||
|
||||
virtual Type type() const override { return Type::Supports; };
|
||||
virtual Type type() const override { return Type::Supports; }
|
||||
|
||||
DeprecatedString condition_text() const override;
|
||||
void set_condition_text(DeprecatedString) override;
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
GridTrackPlacement(String line_name, bool has_span = false);
|
||||
GridTrackPlacement();
|
||||
|
||||
static GridTrackPlacement make_auto() { return GridTrackPlacement(); };
|
||||
static GridTrackPlacement make_auto() { return GridTrackPlacement(); }
|
||||
|
||||
bool is_span() const { return m_type == Type::Span; }
|
||||
bool is_position() const { return m_type == Type::Position; }
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
bool is_max_content() const { return m_type == Type::MaxContent; }
|
||||
bool is_min_content() const { return m_type == Type::MinContent; }
|
||||
|
||||
LengthPercentage length_percentage() const { return m_length_percentage; };
|
||||
LengthPercentage length_percentage() const { return m_length_percentage; }
|
||||
double flex_factor() const { return m_flex_factor; }
|
||||
|
||||
// https://www.w3.org/TR/css-grid-2/#layout-algorithm
|
||||
|
|
|
@ -21,11 +21,11 @@ public:
|
|||
LengthPercentage& top() { return m_top; }
|
||||
LengthPercentage& right() { return m_right; }
|
||||
LengthPercentage& bottom() { return m_bottom; }
|
||||
LengthPercentage& left() { return m_left; };
|
||||
LengthPercentage& left() { return m_left; }
|
||||
LengthPercentage const& top() const { return m_top; }
|
||||
LengthPercentage const& right() const { return m_right; }
|
||||
LengthPercentage const& bottom() const { return m_bottom; }
|
||||
LengthPercentage const& left() const { return m_left; };
|
||||
LengthPercentage const& left() const { return m_left; }
|
||||
|
||||
private:
|
||||
LengthPercentage m_top;
|
||||
|
|
|
@ -2505,7 +2505,7 @@ static StringView consume_if_starts_with(StringView str, StringView start, auto
|
|||
return str.substring_view(start.length());
|
||||
}
|
||||
return str;
|
||||
};
|
||||
}
|
||||
|
||||
ErrorOr<RefPtr<StyleValue>> Parser::parse_linear_gradient_function(ComponentValue const& component_value)
|
||||
{
|
||||
|
@ -5349,7 +5349,7 @@ static Optional<PositionEdge> identifier_to_edge(ValueID identifier)
|
|||
default:
|
||||
return {};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static Optional<LengthPercentage> style_value_to_length_percentage(auto value)
|
||||
{
|
||||
|
@ -5360,7 +5360,7 @@ static Optional<LengthPercentage> style_value_to_length_percentage(auto value)
|
|||
if (value->is_calculated())
|
||||
return LengthPercentage { value->as_calculated() };
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
ErrorOr<RefPtr<StyleValue>> Parser::parse_single_background_position_value(TokenStream<ComponentValue>& tokens)
|
||||
{
|
||||
|
@ -7906,7 +7906,7 @@ bool block_contains_var_or_attr(Block const& block)
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
Parser::ParseErrorOr<NonnullRefPtr<StyleValue>> Parser::parse_css_value(PropertyID property_id, TokenStream<ComponentValue>& tokens)
|
||||
{
|
||||
|
|
|
@ -1600,7 +1600,7 @@ static NonnullRefPtr<StyleValue const> get_inherit_value(JS::Realm& initial_valu
|
|||
if (!parent_element || !parent_element->computed_css_values())
|
||||
return property_initial_value(initial_value_context_realm, property_id).release_value_but_fixme_should_propagate_errors();
|
||||
return parent_element->computed_css_values()->property(property_id);
|
||||
};
|
||||
}
|
||||
|
||||
void StyleComputer::compute_defaulted_property_value(StyleProperties& style, DOM::Element const* element, CSS::PropertyID property_id, Optional<CSS::Selector::PseudoElement> pseudo_element) const
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ static double resolve_value_radians(CalculatedStyleValue::CalculationResult::Val
|
|||
[](Number const& number) { return number.value(); },
|
||||
[](Angle const& angle) { return angle.to_radians(); },
|
||||
[](auto const&) { VERIFY_NOT_REACHED(); return 0.0; });
|
||||
};
|
||||
}
|
||||
|
||||
static double resolve_value(CalculatedStyleValue::CalculationResult::Value value, Optional<Length::ResolutionContext const&> context)
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ static double resolve_value(CalculatedStyleValue::CalculationResult::Value value
|
|||
[&context](Length const& length) { return length.to_px(*context).to_double(); },
|
||||
[](Percentage const& percentage) { return percentage.value(); },
|
||||
[](Time const& time) { return time.to_seconds(); });
|
||||
};
|
||||
}
|
||||
|
||||
static Optional<CSSNumericType> add_the_types(Vector<NonnullOwnPtr<CalculationNode>> const& nodes, PropertyID property_id)
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ static CalculatedStyleValue::CalculationResult to_resolved_type(CalculatedStyleV
|
|||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
};
|
||||
}
|
||||
|
||||
CalculationNode::CalculationNode(Type type)
|
||||
: m_type(type)
|
||||
|
|
|
@ -454,7 +454,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override;
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override;
|
||||
virtual Optional<CSSNumericType> determine_type(PropertyID) const override;
|
||||
virtual bool contains_percentage() const override { return false; };
|
||||
virtual bool contains_percentage() const override { return false; }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&> context, CalculatedStyleValue::PercentageBasis const&) const override;
|
||||
virtual ErrorOr<void> for_each_child_node(Function<ErrorOr<void>(NonnullOwnPtr<CalculationNode>&)> const&) override;
|
||||
|
||||
|
@ -607,7 +607,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override;
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override;
|
||||
virtual Optional<CSSNumericType> determine_type(PropertyID) const override;
|
||||
virtual bool contains_percentage() const override { return false; };
|
||||
virtual bool contains_percentage() const override { return false; }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override;
|
||||
virtual ErrorOr<void> for_each_child_node(Function<ErrorOr<void>(NonnullOwnPtr<CalculationNode>&)> const&) override;
|
||||
|
||||
|
@ -627,7 +627,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override;
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override;
|
||||
virtual Optional<CSSNumericType> determine_type(PropertyID) const override;
|
||||
virtual bool contains_percentage() const override { return false; };
|
||||
virtual bool contains_percentage() const override { return false; }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override;
|
||||
virtual ErrorOr<void> for_each_child_node(Function<ErrorOr<void>(NonnullOwnPtr<CalculationNode>&)> const&) override;
|
||||
|
||||
|
@ -665,7 +665,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override;
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override;
|
||||
virtual Optional<CSSNumericType> determine_type(PropertyID) const override;
|
||||
virtual bool contains_percentage() const override { return false; };
|
||||
virtual bool contains_percentage() const override { return false; }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override;
|
||||
virtual ErrorOr<void> for_each_child_node(Function<ErrorOr<void>(NonnullOwnPtr<CalculationNode>&)> const&) override;
|
||||
|
||||
|
@ -685,7 +685,7 @@ public:
|
|||
virtual ErrorOr<String> to_string() const override;
|
||||
virtual Optional<CalculatedStyleValue::ResolvedType> resolved_type() const override;
|
||||
virtual Optional<CSSNumericType> determine_type(PropertyID) const override;
|
||||
virtual bool contains_percentage() const override { return false; };
|
||||
virtual bool contains_percentage() const override { return false; }
|
||||
virtual CalculatedStyleValue::CalculationResult resolve(Optional<Length::ResolutionContext const&>, CalculatedStyleValue::PercentageBasis const&) const override;
|
||||
virtual ErrorOr<void> for_each_child_node(Function<ErrorOr<void>(NonnullOwnPtr<CalculationNode>&)> const&) override;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
virtual bool has_color() const override { return true; }
|
||||
virtual Color to_color(Optional<Layout::NodeWithStyle const&>) const override { return m_color; }
|
||||
|
||||
bool properties_equal(ColorStyleValue const& other) const { return m_color == other.m_color; };
|
||||
bool properties_equal(ColorStyleValue const& other) const { return m_color == other.m_color; }
|
||||
|
||||
private:
|
||||
explicit ColorStyleValue(Color color)
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(ContentStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(ContentStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
ContentStyleValue(ValueComparingNonnullRefPtr<StyleValueList> content, ValueComparingRefPtr<StyleValueList> alt_text)
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
|
||||
virtual ~FilterValueListStyleValue() override = default;
|
||||
|
||||
bool properties_equal(FilterValueListStyleValue const& other) const { return m_filter_value_list == other.m_filter_value_list; };
|
||||
bool properties_equal(FilterValueListStyleValue const& other) const { return m_filter_value_list == other.m_filter_value_list; }
|
||||
|
||||
private:
|
||||
FilterValueListStyleValue(Vector<FilterFunction> filter_value_list)
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(FlexFlowStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(FlexFlowStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
FlexFlowStyleValue(ValueComparingNonnullRefPtr<StyleValue> flex_direction, ValueComparingNonnullRefPtr<StyleValue> flex_wrap)
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(FlexStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(FlexStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
FlexStyleValue(
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(FontStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(FontStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
FontStyleValue(ValueComparingNonnullRefPtr<StyleValue> font_stretch, ValueComparingNonnullRefPtr<StyleValue> font_style, ValueComparingNonnullRefPtr<StyleValue> font_weight, ValueComparingNonnullRefPtr<StyleValue> font_size, ValueComparingNonnullRefPtr<StyleValue> line_height, ValueComparingNonnullRefPtr<StyleValue> font_families)
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override { return m_frequency.to_string(); }
|
||||
|
||||
bool properties_equal(FrequencyStyleValue const& other) const { return m_frequency == other.m_frequency; };
|
||||
bool properties_equal(FrequencyStyleValue const& other) const { return m_frequency == other.m_frequency; }
|
||||
|
||||
private:
|
||||
explicit FrequencyStyleValue(Frequency frequency)
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
Vector<Vector<String>> const& grid_template_area() const { return m_grid_template_area; }
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(GridTemplateAreaStyleValue const& other) const { return m_grid_template_area == other.m_grid_template_area; };
|
||||
bool properties_equal(GridTemplateAreaStyleValue const& other) const { return m_grid_template_area == other.m_grid_template_area; }
|
||||
|
||||
private:
|
||||
explicit GridTemplateAreaStyleValue(Vector<Vector<String>> grid_template_area)
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(GridTrackPlacementShorthandStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(GridTrackPlacementShorthandStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
GridTrackPlacementShorthandStyleValue(ValueComparingNonnullRefPtr<GridTrackPlacementStyleValue const> start, ValueComparingNonnullRefPtr<GridTrackPlacementStyleValue const> end)
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
GridTrackPlacement const& grid_track_placement() const { return m_grid_track_placement; }
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(GridTrackPlacementStyleValue const& other) const { return m_grid_track_placement == other.m_grid_track_placement; };
|
||||
bool properties_equal(GridTrackPlacementStyleValue const& other) const { return m_grid_track_placement == other.m_grid_track_placement; }
|
||||
|
||||
private:
|
||||
explicit GridTrackPlacementStyleValue(GridTrackPlacement grid_track_placement)
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(GridTrackSizeListShorthandStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(GridTrackSizeListShorthandStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
GridTrackSizeListShorthandStyleValue(
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
virtual ErrorOr<String> to_string() const override;
|
||||
|
||||
bool properties_equal(PlaceContentStyleValue const& other) const { return m_properties == other.m_properties; };
|
||||
bool properties_equal(PlaceContentStyleValue const& other) const { return m_properties == other.m_properties; }
|
||||
|
||||
private:
|
||||
PlaceContentStyleValue(ValueComparingNonnullRefPtr<StyleValue> align_content, ValueComparingNonnullRefPtr<StyleValue> justify_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue