mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Fix typos - act II
This commit is contained in:
parent
86be8abfbf
commit
5cc371d54c
Notes:
github-actions[bot]
2025-04-09 14:06:24 +00:00
Author: https://github.com/szepeviktor
Commit: 5cc371d54c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4264
Reviewed-by: https://github.com/AtkinsSJ ✅
30 changed files with 69 additions and 69 deletions
|
@ -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()) {
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue