mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Everywhere: Change west consts caught by clang-format-21 to east consts
This commit is contained in:
parent
829437c11d
commit
b17783bb10
Notes:
github-actions[bot]
2025-08-29 17:20:11 +00:00
Author: https://github.com/Lubrsi
Commit: b17783bb10
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6023
Reviewed-by: https://github.com/tcl3 ✅
49 changed files with 80 additions and 80 deletions
|
|
@ -510,7 +510,7 @@ void HTMLDialogElement::invoker_command_steps(DOM::Element& invoker, String& com
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interactive-elements.html#nearest-clicked-dialog
|
||||
GC::Ptr<HTMLDialogElement> HTMLDialogElement::nearest_clicked_dialog(UIEvents::PointerEvent const& event, const GC::Ptr<DOM::Node> target)
|
||||
GC::Ptr<HTMLDialogElement> HTMLDialogElement::nearest_clicked_dialog(UIEvents::PointerEvent const& event, GC::Ptr<DOM::Node> const target)
|
||||
{
|
||||
// To find the nearest clicked dialog, given a PointerEvent event:
|
||||
|
||||
|
|
@ -542,7 +542,7 @@ GC::Ptr<HTMLDialogElement> HTMLDialogElement::nearest_clicked_dialog(UIEvents::P
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interactive-elements.html#light-dismiss-open-dialogs
|
||||
void HTMLDialogElement::light_dismiss_open_dialogs(UIEvents::PointerEvent const& event, const GC::Ptr<DOM::Node> target)
|
||||
void HTMLDialogElement::light_dismiss_open_dialogs(UIEvents::PointerEvent const& event, GC::Ptr<DOM::Node> const target)
|
||||
{
|
||||
// To light dismiss open dialogs, given a PointerEvent event:
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ JS::Uint8ClampedArray* ImageData::data()
|
|||
return m_data;
|
||||
}
|
||||
|
||||
const JS::Uint8ClampedArray* ImageData::data() const
|
||||
JS::Uint8ClampedArray const* ImageData::data() const
|
||||
{
|
||||
return m_data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
Gfx::Bitmap const& bitmap() const { return *m_bitmap; }
|
||||
|
||||
JS::Uint8ClampedArray* data();
|
||||
const JS::Uint8ClampedArray* data() const;
|
||||
JS::Uint8ClampedArray const* data() const;
|
||||
|
||||
Bindings::PredefinedColorSpace color_space() const { return m_color_space; }
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ WebIDL::ExceptionOr<void> NavigableContainer::create_new_child_navigable(GC::Ptr
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#concept-bcc-content-document
|
||||
const DOM::Document* NavigableContainer::content_document() const
|
||||
DOM::Document const* NavigableContainer::content_document() const
|
||||
{
|
||||
// 1. If container's content navigable is null, then return null.
|
||||
if (m_content_navigable == nullptr)
|
||||
|
|
@ -175,7 +175,7 @@ DOM::Document const* NavigableContainer::content_document_without_origin_check()
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-media-getsvgdocument
|
||||
const DOM::Document* NavigableContainer::get_svg_document() const
|
||||
DOM::Document const* NavigableContainer::get_svg_document() const
|
||||
{
|
||||
// 1. Let document be this element's content document.
|
||||
auto const* document = content_document();
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public:
|
|||
GC::Ptr<Navigable> content_navigable() { return m_content_navigable; }
|
||||
GC::Ptr<Navigable const> content_navigable() const { return m_content_navigable.ptr(); }
|
||||
|
||||
const DOM::Document* content_document() const;
|
||||
DOM::Document const* content_document() const;
|
||||
DOM::Document const* content_document_without_origin_check() const;
|
||||
|
||||
HTML::WindowProxy* content_window();
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ void HTMLParser::run(HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point
|
|||
flush_character_insertions();
|
||||
}
|
||||
|
||||
void HTMLParser::run(const URL::URL& url, HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point)
|
||||
void HTMLParser::run(URL::URL const& url, HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point)
|
||||
{
|
||||
m_document->set_url(url);
|
||||
m_document->set_source(m_tokenizer.source());
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public:
|
|||
static GC::Ref<HTMLParser> create(DOM::Document&, StringView input, StringView encoding);
|
||||
|
||||
void run(HTMLTokenizer::StopAtInsertionPoint = HTMLTokenizer::StopAtInsertionPoint::No);
|
||||
void run(const URL::URL&, HTMLTokenizer::StopAtInsertionPoint = HTMLTokenizer::StopAtInsertionPoint::No);
|
||||
void run(URL::URL const&, HTMLTokenizer::StopAtInsertionPoint = HTMLTokenizer::StopAtInsertionPoint::No);
|
||||
|
||||
static void the_end(GC::Ref<DOM::Document>, GC::Ptr<HTMLParser> = nullptr);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ void ListOfActiveFormattingElements::add_marker()
|
|||
m_entries.append({ nullptr });
|
||||
}
|
||||
|
||||
bool ListOfActiveFormattingElements::contains(const DOM::Element& element) const
|
||||
bool ListOfActiveFormattingElements::contains(DOM::Element const& element) const
|
||||
{
|
||||
for (auto& entry : m_entries) {
|
||||
if (entry.element.ptr() == &element)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public:
|
|||
};
|
||||
|
||||
bool is_empty() const { return m_entries.is_empty(); }
|
||||
bool contains(const DOM::Element&) const;
|
||||
bool contains(DOM::Element const&) const;
|
||||
|
||||
void add(DOM::Element& element);
|
||||
void add_marker();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ bool StackOfOpenElements::has_in_scope(FlyString const& tag_name) const
|
|||
return has_in_scope_impl(tag_name, s_base_list);
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::has_in_scope_impl(const DOM::Element& target_node, Vector<FlyString> const& list) const
|
||||
bool StackOfOpenElements::has_in_scope_impl(DOM::Element const& target_node, Vector<FlyString> const& list) const
|
||||
{
|
||||
for (auto& element : m_elements.in_reverse()) {
|
||||
if (element.ptr() == &target_node)
|
||||
|
|
@ -47,7 +47,7 @@ bool StackOfOpenElements::has_in_scope_impl(const DOM::Element& target_node, Vec
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::has_in_scope(const DOM::Element& target_node) const
|
||||
bool StackOfOpenElements::has_in_scope(DOM::Element const& target_node) const
|
||||
{
|
||||
return has_in_scope_impl(target_node, s_base_list);
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ bool StackOfOpenElements::has_in_select_scope(FlyString const& tag_name) const
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::contains(const DOM::Element& element) const
|
||||
bool StackOfOpenElements::contains(DOM::Element const& element) const
|
||||
{
|
||||
for (auto& element_on_stack : m_elements) {
|
||||
if (&element == element_on_stack.ptr())
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public:
|
|||
void replace(DOM::Element const& to_remove, GC::Ref<DOM::Element> to_add);
|
||||
void insert_immediately_below(GC::Ref<DOM::Element> element_to_add, DOM::Element const& target);
|
||||
|
||||
const DOM::Element& current_node() const { return *m_elements.last(); }
|
||||
DOM::Element const& current_node() const { return *m_elements.last(); }
|
||||
DOM::Element& current_node() { return *m_elements.last(); }
|
||||
|
||||
bool has_in_scope(FlyString const& tag_name) const;
|
||||
|
|
@ -41,9 +41,9 @@ public:
|
|||
bool has_in_list_item_scope(FlyString const& tag_name) const;
|
||||
bool has_in_select_scope(FlyString const& tag_name) const;
|
||||
|
||||
bool has_in_scope(const DOM::Element&) const;
|
||||
bool has_in_scope(DOM::Element const&) const;
|
||||
|
||||
bool contains(const DOM::Element&) const;
|
||||
bool contains(DOM::Element const&) const;
|
||||
[[nodiscard]] bool contains_template_element() const;
|
||||
|
||||
auto const& elements() const { return m_elements; }
|
||||
|
|
@ -64,7 +64,7 @@ public:
|
|||
|
||||
private:
|
||||
bool has_in_scope_impl(FlyString const& tag_name, Vector<FlyString> const&) const;
|
||||
bool has_in_scope_impl(const DOM::Element& target_node, Vector<FlyString> const&) const;
|
||||
bool has_in_scope_impl(DOM::Element const& target_node, Vector<FlyString> const&) const;
|
||||
|
||||
Vector<GC::Ref<DOM::Element>> m_elements;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@ enum class SameOriginFallbackFlag {
|
|||
Yes,
|
||||
};
|
||||
|
||||
[[nodiscard]] WEB_API GC::Ref<Fetch::Infrastructure::Request> create_potential_CORS_request(JS::VM&, const URL::URL&, Optional<Fetch::Infrastructure::Request::Destination>, CORSSettingAttribute, SameOriginFallbackFlag = SameOriginFallbackFlag::No);
|
||||
[[nodiscard]] WEB_API GC::Ref<Fetch::Infrastructure::Request> create_potential_CORS_request(JS::VM&, URL::URL const&, Optional<Fetch::Infrastructure::Request::Destination>, CORSSettingAttribute, SameOriginFallbackFlag = SameOriginFallbackFlag::No);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ ScriptFetchOptions get_descendant_script_fetch_options(ScriptFetchOptions const&
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#resolving-a-module-integrity-metadata
|
||||
String resolve_a_module_integrity_metadata(const URL::URL& url, EnvironmentSettingsObject& settings_object)
|
||||
String resolve_a_module_integrity_metadata(URL::URL const& url, EnvironmentSettingsObject& settings_object)
|
||||
{
|
||||
// 1. Let map be settingsObject's global object's import map.
|
||||
auto map = as<UniversalGlobalScopeMixin>(settings_object.global_object()).import_map();
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ void TextTrackList::visit_edges(JS::Cell::Visitor& visitor)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-texttracklist-item
|
||||
JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> TextTrackList::internal_get_own_property(const JS::PropertyKey& property_name) const
|
||||
JS::ThrowCompletionOr<Optional<JS::PropertyDescriptor>> TextTrackList::internal_get_own_property(JS::PropertyKey const& property_name) const
|
||||
{
|
||||
// To determine the value of an indexed property of a TextTrackList object for a given index index, the user
|
||||
// agent must return the indexth text track in the list represented by the TextTrackList object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue