mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
@@ -189,7 +189,7 @@ GC::Ptr<HTMLTableSectionElement> HTMLTableElement::t_head()
|
||||
// if any, or null otherwise.
|
||||
for (auto* child = first_child(); child; child = child->next_sibling()) {
|
||||
if (is<HTMLTableSectionElement>(*child)) {
|
||||
auto table_section_element = &verify_cast<HTMLTableSectionElement>(*child);
|
||||
auto table_section_element = &as<HTMLTableSectionElement>(*child);
|
||||
if (table_section_element->local_name() == TagNames::thead)
|
||||
return table_section_element;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ WebIDL::ExceptionOr<void> HTMLTableElement::set_t_head(HTMLTableSectionElement*
|
||||
if (is<HTMLTableCaptionElement>(*child))
|
||||
continue;
|
||||
if (is<HTMLTableColElement>(*child)) {
|
||||
auto table_col_element = &verify_cast<HTMLTableColElement>(*child);
|
||||
auto table_col_element = &as<HTMLTableColElement>(*child);
|
||||
if (table_col_element->local_name() == TagNames::colgroup)
|
||||
continue;
|
||||
}
|
||||
@@ -256,7 +256,7 @@ GC::Ref<HTMLTableSectionElement> HTMLTableElement::create_t_head()
|
||||
if (is<HTMLTableCaptionElement>(*child))
|
||||
continue;
|
||||
if (is<HTMLTableColElement>(*child)) {
|
||||
auto table_col_element = &verify_cast<HTMLTableColElement>(*child);
|
||||
auto table_col_element = &as<HTMLTableColElement>(*child);
|
||||
if (table_col_element->local_name() == TagNames::colgroup)
|
||||
continue;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ GC::Ptr<HTMLTableSectionElement> HTMLTableElement::t_foot()
|
||||
// if any, or null otherwise.
|
||||
for (auto* child = first_child(); child; child = child->next_sibling()) {
|
||||
if (is<HTMLTableSectionElement>(*child)) {
|
||||
auto table_section_element = &verify_cast<HTMLTableSectionElement>(*child);
|
||||
auto table_section_element = &as<HTMLTableSectionElement>(*child);
|
||||
if (table_section_element->local_name() == TagNames::tfoot)
|
||||
return table_section_element;
|
||||
}
|
||||
@@ -360,7 +360,7 @@ GC::Ref<HTMLTableSectionElement> HTMLTableElement::create_t_body()
|
||||
if (!is<HTMLElement>(*child))
|
||||
continue;
|
||||
if (is<HTMLTableSectionElement>(*child)) {
|
||||
auto table_section_element = &verify_cast<HTMLTableSectionElement>(*child);
|
||||
auto table_section_element = &as<HTMLTableSectionElement>(*child);
|
||||
if (table_section_element->local_name() == TagNames::tbody) {
|
||||
// We have found an element which is a <tbody> we'll insert after this
|
||||
child_to_insert_before = child->next_sibling();
|
||||
|
||||
Reference in New Issue
Block a user