mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
LibWeb: Remove DOM element deprecated_get_attribute()
This commit is contained in:
parent
c477f90df7
commit
a681429dff
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/bplaat
Commit: a681429dff
Pull-request: https://github.com/SerenityOS/serenity/pull/22777
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/shannonbooth ✅
40 changed files with 114 additions and 122 deletions
|
@ -44,7 +44,7 @@ void HTMLTableElement::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_t_bodies);
|
||||
}
|
||||
|
||||
static unsigned parse_border(ByteString const& value)
|
||||
static unsigned parse_border(StringView value)
|
||||
{
|
||||
return value.to_number<unsigned>().value_or(0);
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c
|
|||
if (value.equals_ignoring_ascii_case("center"sv)) {
|
||||
style.set_property(CSS::PropertyID::MarginLeft, CSS::IdentifierStyleValue::create(CSS::ValueID::Auto));
|
||||
style.set_property(CSS::PropertyID::MarginRight, CSS::IdentifierStyleValue::create(CSS::ValueID::Auto));
|
||||
} else if (auto parsed_value = parse_css_value(CSS::Parser::ParsingContext { document() }, value.view(), CSS::PropertyID::Float)) {
|
||||
} else if (auto parsed_value = parse_css_value(CSS::Parser::ParsingContext { document() }, value, CSS::PropertyID::Float)) {
|
||||
style.set_property(CSS::PropertyID::Float, parsed_value.release_nonnull());
|
||||
}
|
||||
return;
|
||||
|
@ -435,7 +435,7 @@ WebIDL::ExceptionOr<void> HTMLTableElement::delete_row(long index)
|
|||
|
||||
unsigned int HTMLTableElement::border() const
|
||||
{
|
||||
return parse_border(deprecated_attribute(HTML::AttributeNames::border));
|
||||
return parse_border(get_attribute_value(HTML::AttributeNames::border));
|
||||
}
|
||||
|
||||
unsigned int HTMLTableElement::padding() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue