mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 15:58:47 +00:00
LibWeb: Move CSS classes into the Web::CSS namespace
This commit is contained in:
parent
3e389f4cdc
commit
1f008c95b6
Notes:
sideshowbarker
2024-07-19 04:35:42 +09:00
Author: https://github.com/awesomekling
Commit: 1f008c95b6
100 changed files with 358 additions and 366 deletions
Libraries/LibWeb/HTML
|
@ -61,7 +61,7 @@ HTMLImageElement::~HTMLImageElement()
|
|||
{
|
||||
}
|
||||
|
||||
void HTMLImageElement::apply_presentational_hints(StyleProperties& style) const
|
||||
void HTMLImageElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
||||
{
|
||||
for_each_attribute([&](auto& name, auto& value) {
|
||||
if (name == HTML::AttributeNames::width) {
|
||||
|
@ -84,7 +84,7 @@ void HTMLImageElement::parse_attribute(const FlyString& name, const String& valu
|
|||
m_image_loader.load(document().complete_url(value));
|
||||
}
|
||||
|
||||
RefPtr<LayoutNode> HTMLImageElement::create_layout_node(const StyleProperties* parent_style)
|
||||
RefPtr<LayoutNode> HTMLImageElement::create_layout_node(const CSS::StyleProperties* parent_style)
|
||||
{
|
||||
auto style = document().style_resolver().resolve_style(*this, parent_style);
|
||||
if (style->display() == CSS::Display::None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue