mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +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
|
@ -167,7 +167,7 @@ public:
|
|||
virtual WebIDL::ExceptionOr<void> set_aria_value_text(DeprecatedString const&) = 0;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#docconformance
|
||||
virtual Optional<Role> default_role() const { return {}; };
|
||||
virtual Optional<Role> default_role() const { return {}; }
|
||||
|
||||
Optional<Role> role_or_default() const;
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
virtual bool children_are_presentational() const { return false; }
|
||||
// https://www.w3.org/TR/wai-aria-1.2/#implictValueForRole
|
||||
using DefaultValueType = Variant<Empty, f64, AriaOrientation, AriaLive, bool, AriaHasPopup>;
|
||||
virtual DefaultValueType default_value_for_property_or_state(StateAndProperties) const { return {}; };
|
||||
virtual DefaultValueType default_value_for_property_or_state(StateAndProperties) const { return {}; }
|
||||
ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& object) const;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -132,6 +132,6 @@ ErrorOr<String> generate_random_uuid()
|
|||
TRY(builder.try_appendff("{:02x}{:02x}{:02x}{:02x}{:02x}{:02x}", bytes[10], bytes[11], bytes[12], bytes[13], bytes[14], bytes[15]));
|
||||
|
||||
return builder.to_string();
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -300,7 +300,7 @@ public:
|
|||
JS::NonnullGCPtr<Document> appropriate_template_contents_owner_document();
|
||||
|
||||
DeprecatedString ready_state() const;
|
||||
HTML::DocumentReadyState readiness() const { return m_readiness; };
|
||||
HTML::DocumentReadyState readiness() const { return m_readiness; }
|
||||
void update_readiness(HTML::DocumentReadyState);
|
||||
|
||||
HTML::Window& window() const { return const_cast<HTML::Window&>(*m_window); }
|
||||
|
@ -483,7 +483,7 @@ public:
|
|||
|
||||
void make_active();
|
||||
|
||||
void set_salvageable(bool value) { m_salvageable = value; };
|
||||
void set_salvageable(bool value) { m_salvageable = value; }
|
||||
|
||||
HTML::ListOfAvailableImages& list_of_available_images();
|
||||
HTML::ListOfAvailableImages const& list_of_available_images() const;
|
||||
|
|
|
@ -110,7 +110,7 @@ public:
|
|||
void clear_path() { m_path.clear(); }
|
||||
|
||||
void set_touch_target_list(TouchTargetList& touch_target_list) { m_touch_target_list = touch_target_list; }
|
||||
TouchTargetList& touch_target_list() { return m_touch_target_list; };
|
||||
TouchTargetList& touch_target_list() { return m_touch_target_list; }
|
||||
void clear_touch_target_list() { m_touch_target_list.clear(); }
|
||||
|
||||
bool bubbles() const { return m_bubbles; }
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
|
||||
DeprecatedFlyString const& encoding() const { return m_encoding; }
|
||||
bool fatal() const { return m_fatal; }
|
||||
bool ignore_bom() const { return m_ignore_bom; };
|
||||
bool ignore_bom() const { return m_ignore_bom; }
|
||||
|
||||
private:
|
||||
// https://encoding.spec.whatwg.org/#dom-textdecoder
|
||||
|
|
|
@ -212,7 +212,7 @@ public:
|
|||
void register_frame_nesting(AK::URL const&);
|
||||
bool is_frame_nesting_allowed(AK::URL const&) const;
|
||||
|
||||
void set_frame_nesting_levels(HashMap<AK::URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); };
|
||||
void set_frame_nesting_levels(HashMap<AK::URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); }
|
||||
HashMap<AK::URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
|
||||
|
||||
DOM::Document* container_document();
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-body
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; };
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; }
|
||||
|
||||
private:
|
||||
HTMLBodyElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
|
|
@ -18,7 +18,7 @@ public:
|
|||
virtual ~HTMLDetailsElement() override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-details
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::group; };
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::group; }
|
||||
|
||||
// ^Element
|
||||
WebIDL::ExceptionOr<void> set_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
bool checked_binding() const { return checked(); }
|
||||
void set_checked_binding(bool);
|
||||
|
||||
bool indeterminate() const { return m_indeterminate; };
|
||||
bool indeterminate() const { return m_indeterminate; }
|
||||
void set_indeterminate(bool);
|
||||
|
||||
void did_edit_text_node(Badge<BrowsingContext>);
|
||||
|
|
|
@ -18,7 +18,7 @@ public:
|
|||
virtual ~HTMLLIElement() override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-li
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::listitem; };
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::listitem; }
|
||||
|
||||
private:
|
||||
HTMLLIElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
|
|
@ -18,7 +18,7 @@ public:
|
|||
virtual ~HTMLSummaryElement() override;
|
||||
|
||||
// https://www.w3.org/TR/html-aria/#el-details
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::button; };
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::button; }
|
||||
|
||||
bool is_summary_for_its_parent_details();
|
||||
|
||||
|
|
|
@ -33,18 +33,18 @@ public:
|
|||
|
||||
Vector<JS::Handle<Navigable>> child_navigables() const;
|
||||
|
||||
String const& id() const { return m_id; };
|
||||
JS::GCPtr<Navigable> parent() const { return m_parent; };
|
||||
String const& id() const { return m_id; }
|
||||
JS::GCPtr<Navigable> parent() const { return m_parent; }
|
||||
|
||||
bool is_closing() const { return m_closing; };
|
||||
void set_closing(bool value) { m_closing = value; };
|
||||
bool is_closing() const { return m_closing; }
|
||||
void set_closing(bool value) { m_closing = value; }
|
||||
|
||||
bool is_delaying_load_events() const { return m_delaying_load_events; };
|
||||
void set_delaying_load_events(bool value) { m_delaying_load_events = value; };
|
||||
bool is_delaying_load_events() const { return m_delaying_load_events; }
|
||||
void set_delaying_load_events(bool value) { m_delaying_load_events = value; }
|
||||
|
||||
JS::GCPtr<SessionHistoryEntry> active_session_history_entry() const { return m_active_session_history_entry; };
|
||||
JS::GCPtr<SessionHistoryEntry> current_session_history_entry() const { return m_current_session_history_entry; };
|
||||
void set_current_session_history_entry(JS::GCPtr<SessionHistoryEntry> entry) { m_current_session_history_entry = entry; };
|
||||
JS::GCPtr<SessionHistoryEntry> active_session_history_entry() const { return m_active_session_history_entry; }
|
||||
JS::GCPtr<SessionHistoryEntry> current_session_history_entry() const { return m_current_session_history_entry; }
|
||||
void set_current_session_history_entry(JS::GCPtr<SessionHistoryEntry> entry) { m_current_session_history_entry = entry; }
|
||||
|
||||
Vector<JS::NonnullGCPtr<SessionHistoryEntry>>& get_session_history_entries() const;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ JS::NonnullGCPtr<RemoteBrowsingContext> RemoteBrowsingContext::create_a_new_remo
|
|||
{
|
||||
auto browsing_context = Bindings::main_thread_vm().heap().allocate_without_realm<RemoteBrowsingContext>(handle);
|
||||
return browsing_context;
|
||||
};
|
||||
}
|
||||
|
||||
HTML::WindowProxy* RemoteBrowsingContext::window_proxy()
|
||||
{
|
||||
|
|
|
@ -33,10 +33,10 @@ public:
|
|||
Function<void(JS::NonnullGCPtr<Fetch::Infrastructure::Response>)>) override
|
||||
{
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
virtual String const& window_handle() const override { return m_window_handle; }
|
||||
virtual void set_window_handle(String handle) override { m_window_handle = handle; };
|
||||
virtual void set_window_handle(String handle) override { m_window_handle = handle; }
|
||||
|
||||
private:
|
||||
explicit RemoteBrowsingContext(String);
|
||||
|
|
|
@ -47,14 +47,14 @@ public:
|
|||
|
||||
~DescendantFetchingContext() = default;
|
||||
|
||||
size_t pending_count() const { return m_pending_count; };
|
||||
size_t pending_count() const { return m_pending_count; }
|
||||
void set_pending_count(size_t count) { m_pending_count = count; }
|
||||
void decrement_pending_count() { --m_pending_count; }
|
||||
|
||||
bool failed() const { return m_failed; }
|
||||
void set_failed(bool failed) { m_failed = failed; }
|
||||
|
||||
void on_complete(JavaScriptModuleScript* module_script) { m_on_complete(module_script); };
|
||||
void on_complete(JavaScriptModuleScript* module_script) { m_on_complete(module_script); }
|
||||
void set_on_complete(OnFetchScriptComplete on_complete) { m_on_complete = move(on_complete); }
|
||||
|
||||
private:
|
||||
|
|
|
@ -20,13 +20,13 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
AK::URL const& url() const { return m_url; };
|
||||
AK::URL const& url() const { return m_url; }
|
||||
DeprecatedString const& type() const { return m_type; }
|
||||
|
||||
bool operator==(ModuleLocationTuple const& other) const
|
||||
{
|
||||
return other.url() == m_url && other.type() == m_type;
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
AK::URL m_url;
|
||||
|
|
|
@ -37,8 +37,8 @@ public:
|
|||
|
||||
JS::Promise* run(PreventErrorReporting = PreventErrorReporting::No);
|
||||
|
||||
JS::SourceTextModule const* record() const { return m_record.ptr(); };
|
||||
JS::SourceTextModule* record() { return m_record.ptr(); };
|
||||
JS::SourceTextModule const* record() const { return m_record.ptr(); }
|
||||
JS::SourceTextModule* record() { return m_record.ptr(); }
|
||||
|
||||
protected:
|
||||
JavaScriptModuleScript(AK::URL base_url, DeprecatedString filename, EnvironmentSettingsObject& environment_settings_object);
|
||||
|
|
|
@ -24,11 +24,11 @@ public:
|
|||
|
||||
bool is_top_level_traversable() const;
|
||||
|
||||
int current_session_history_step() const { return m_current_session_history_step; };
|
||||
Vector<JS::NonnullGCPtr<SessionHistoryEntry>>& session_history_entries() { return m_session_history_entries; };
|
||||
Vector<JS::NonnullGCPtr<SessionHistoryEntry>> const& session_history_entries() const { return m_session_history_entries; };
|
||||
bool running_nested_apply_history_step() const { return m_running_nested_apply_history_step; };
|
||||
VisibilityState system_visibility_state() const { return m_system_visibility_state; };
|
||||
int current_session_history_step() const { return m_current_session_history_step; }
|
||||
Vector<JS::NonnullGCPtr<SessionHistoryEntry>>& session_history_entries() { return m_session_history_entries; }
|
||||
Vector<JS::NonnullGCPtr<SessionHistoryEntry>> const& session_history_entries() const { return m_session_history_entries; }
|
||||
bool running_nested_apply_history_step() const { return m_running_nested_apply_history_step; }
|
||||
VisibilityState system_visibility_state() const { return m_system_visibility_state; }
|
||||
|
||||
struct HistoryObjectLengthAndIndex {
|
||||
size_t script_history_length;
|
||||
|
|
|
@ -279,7 +279,7 @@ void FlexFormattingContext::populate_specified_margins(FlexItem& item, CSS::Flex
|
|||
item.margins.cross_before_is_auto = item.box->computed_values().margin().left().is_auto();
|
||||
item.margins.cross_after_is_auto = item.box->computed_values().margin().right().is_auto();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-flexbox-1/#flex-items
|
||||
void FlexFormattingContext::generate_anonymous_flex_items()
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
{
|
||||
m_max_column_index = max(0, columns_count - 1);
|
||||
m_max_row_index = max(0, rows_count - 1);
|
||||
};
|
||||
}
|
||||
OccupationGrid() {};
|
||||
|
||||
void set_occupied(int column_start, int column_end, int row_start, int row_end);
|
||||
|
@ -74,9 +74,9 @@ public:
|
|||
}
|
||||
|
||||
int min_column_index() const { return m_min_column_index; }
|
||||
int max_column_index() const { return m_max_column_index; };
|
||||
int min_row_index() const { return m_min_row_index; };
|
||||
int max_row_index() const { return m_max_row_index; };
|
||||
int max_column_index() const { return m_max_column_index; }
|
||||
int min_row_index() const { return m_min_row_index; }
|
||||
int max_row_index() const { return m_max_row_index; }
|
||||
|
||||
bool is_occupied(int column_index, int row_index) const;
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ struct LayoutState {
|
|||
void add_floating_descendant(Box const& box) { m_floating_descendants.set(&box); }
|
||||
auto const& floating_descendants() const { return m_floating_descendants; }
|
||||
|
||||
void set_override_borders_data(Painting::BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; };
|
||||
void set_override_borders_data(Painting::BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; }
|
||||
auto const& override_borders_data() const { return m_override_borders_data; }
|
||||
|
||||
void set_table_cell_coordinates(Painting::PaintableBox::TableCellCoordinates const& table_cell_coordinates) { m_table_cell_coordinates = table_cell_coordinates; }
|
||||
|
|
|
@ -40,10 +40,10 @@ public:
|
|||
ByteBuffer const& body() const { return m_body; }
|
||||
void set_body(ByteBuffer body) { m_body = move(body); }
|
||||
|
||||
void start_timer() { m_load_timer.start(); };
|
||||
void start_timer() { m_load_timer.start(); }
|
||||
Duration load_time() const { return m_load_timer.elapsed_time(); }
|
||||
|
||||
Optional<Page&>& page() { return m_page; };
|
||||
Optional<Page&>& page() { return m_page; }
|
||||
void set_page(Page& page) { m_page = page; }
|
||||
|
||||
unsigned hash() const
|
||||
|
|
|
@ -23,7 +23,7 @@ struct BorderRadiusData {
|
|||
context.floored_device_pixels(horizontal_radius).value(),
|
||||
context.floored_device_pixels(vertical_radius).value()
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
inline operator bool() const
|
||||
{
|
||||
|
|
|
@ -123,7 +123,7 @@ public:
|
|||
|
||||
bool is_out_of_view(PaintContext&) const;
|
||||
|
||||
void set_override_borders_data(BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; };
|
||||
void set_override_borders_data(BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; }
|
||||
auto const& override_borders_data() const { return m_override_borders_data; }
|
||||
|
||||
struct TableCellCoordinates {
|
||||
|
|
|
@ -31,8 +31,8 @@ public:
|
|||
|
||||
virtual ~AudioContext() override;
|
||||
|
||||
double base_latency() const { return m_base_latency; };
|
||||
double output_latency() const { return m_output_latency; };
|
||||
double base_latency() const { return m_base_latency; }
|
||||
double output_latency() const { return m_output_latency; }
|
||||
AudioTimestamp get_output_timestamp();
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> resume();
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> suspend();
|
||||
|
|
|
@ -18,16 +18,16 @@ class BaseAudioContext : public DOM::EventTarget {
|
|||
public:
|
||||
virtual ~BaseAudioContext() override;
|
||||
|
||||
float sample_rate() const { return m_sample_rate; };
|
||||
double current_time() const { return m_current_time; };
|
||||
Bindings::AudioContextState state() const { return m_control_thread_state; };
|
||||
float sample_rate() const { return m_sample_rate; }
|
||||
double current_time() const { return m_current_time; }
|
||||
Bindings::AudioContextState state() const { return m_control_thread_state; }
|
||||
|
||||
void set_onstatechange(WebIDL::CallbackType*);
|
||||
WebIDL::CallbackType* onstatechange();
|
||||
|
||||
void set_sample_rate(float sample_rate) { m_sample_rate = sample_rate; };
|
||||
void set_control_state(Bindings::AudioContextState state) { m_control_thread_state = state; };
|
||||
void set_rendering_state(Bindings::AudioContextState state) { m_rendering_thread_state = state; };
|
||||
void set_sample_rate(float sample_rate) { m_sample_rate = sample_rate; }
|
||||
void set_control_state(Bindings::AudioContextState state) { m_control_thread_state = state; }
|
||||
void set_rendering_state(Bindings::AudioContextState state) { m_rendering_thread_state = state; }
|
||||
|
||||
protected:
|
||||
explicit BaseAudioContext(JS::Realm&);
|
||||
|
|
|
@ -56,8 +56,8 @@ public:
|
|||
String extensions() const;
|
||||
WebIDL::ExceptionOr<String> protocol() const;
|
||||
|
||||
String const& binary_type() { return m_binary_type; };
|
||||
void set_binary_type(String const& type) { m_binary_type = type; };
|
||||
String const& binary_type() { return m_binary_type; }
|
||||
void set_binary_type(String const& type) { m_binary_type = type; }
|
||||
|
||||
WebIDL::ExceptionOr<void> close(Optional<u16> code, Optional<String> reason);
|
||||
WebIDL::ExceptionOr<void> send(Variant<JS::Handle<JS::Object>, JS::Handle<FileAPI::Blob>, String> const& data);
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
|
||||
virtual ~XMLHttpRequest() override;
|
||||
|
||||
State ready_state() const { return m_state; };
|
||||
State ready_state() const { return m_state; }
|
||||
Fetch::Infrastructure::Status status() const;
|
||||
WebIDL::ExceptionOr<String> status_text() const;
|
||||
WebIDL::ExceptionOr<String> response_text() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue