mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibWeb: Move CSS classes into the Web::CSS namespace
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 04:35:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1f008c95b6d
@@ -38,13 +38,13 @@ HTMLTableCellElement::~HTMLTableCellElement()
|
||||
{
|
||||
}
|
||||
|
||||
void HTMLTableCellElement::apply_presentational_hints(StyleProperties& style) const
|
||||
void HTMLTableCellElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
||||
{
|
||||
for_each_attribute([&](auto& name, auto& value) {
|
||||
if (name == HTML::AttributeNames::bgcolor) {
|
||||
auto color = Color::from_string(value);
|
||||
if (color.has_value())
|
||||
style.set_property(CSS::PropertyID::BackgroundColor, ColorStyleValue::create(color.value()));
|
||||
style.set_property(CSS::PropertyID::BackgroundColor, CSS::ColorStyleValue::create(color.value()));
|
||||
return;
|
||||
}
|
||||
if (name == HTML::AttributeNames::align) {
|
||||
|
||||
Reference in New Issue
Block a user