mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-15 23:01:52 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue