LibWeb: Fix typos - act II

This commit is contained in:
Viktor Szépe 2025-04-07 10:46:22 +00:00 committed by Sam Atkins
commit 5cc371d54c
Notes: github-actions[bot] 2025-04-09 14:06:24 +00:00
30 changed files with 69 additions and 69 deletions

View file

@ -115,7 +115,7 @@ void SVGElement::update_use_elements_that_reference_this()
// An unconnected node cannot have valid references.
// This also prevents searches for elements that are in the process of being constructed - as clones.
|| !this->is_connected()
// Each use element already listens for the completely_loaded event and then clones its referece,
// Each use element already listens for the completely_loaded event and then clones its reference,
// we do not have to also clone it in the process of initial DOM building.
|| !document().is_completely_loaded()) {

View file

@ -82,14 +82,14 @@ void SVGUseElement::process_the_url(Optional<String> const& href)
if (!m_href.has_value())
return;
if (is_referrenced_element_same_document()) {
if (is_referenced_element_same_document()) {
clone_element_tree_as_our_shadow_tree(referenced_element());
} else {
fetch_the_document(*m_href);
}
}
bool SVGUseElement::is_referrenced_element_same_document() const
bool SVGUseElement::is_referenced_element_same_document() const
{
return m_href->equals(document().url(), URL::ExcludeFragment::Yes);
}
@ -121,7 +121,7 @@ void SVGUseElement::svg_element_changed(SVGElement& svg_element)
void SVGUseElement::svg_element_removed(SVGElement& svg_element)
{
if (!m_href.has_value() || !m_href->fragment().has_value() || !is_referrenced_element_same_document()) {
if (!m_href.has_value() || !m_href->fragment().has_value() || !is_referenced_element_same_document()) {
return;
}
@ -139,7 +139,7 @@ GC::Ptr<DOM::Element> SVGUseElement::referenced_element()
if (!m_href->fragment().has_value())
return nullptr;
if (is_referrenced_element_same_document())
if (is_referenced_element_same_document())
return document().get_element_by_id(*m_href->fragment());
if (!m_resource_request)

View file

@ -57,7 +57,7 @@ private:
GC::Ptr<DOM::Element> referenced_element();
void fetch_the_document(URL::URL const& url);
bool is_referrenced_element_same_document() const;
bool is_referenced_element_same_document() const;
void clone_element_tree_as_our_shadow_tree(Element* to_clone);
bool is_valid_reference_element(Element const& reference_element) const;