mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibHTML: Rename HTMLImageElement::m_image_loader => m_image_decoder
This matches the new class name, ImageDecoder.
This commit is contained in:
parent
58f67c1ccb
commit
457e49f528
Notes:
sideshowbarker
2024-07-19 11:36:54 +09:00
Author: https://github.com/awesomekling
Commit: 457e49f528
3 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ void HTMLImageElement::load_image(const String& src)
|
|||
}
|
||||
|
||||
m_image_data = data;
|
||||
m_image_loader = ImageDecoder::create(m_image_data.data(), m_image_data.size());
|
||||
m_image_decoder = ImageDecoder::create(m_image_data.data(), m_image_data.size());
|
||||
document().update_layout();
|
||||
});
|
||||
}
|
||||
|
@ -46,8 +46,8 @@ int HTMLImageElement::preferred_width() const
|
|||
if (ok)
|
||||
return width;
|
||||
|
||||
if (m_image_loader)
|
||||
return m_image_loader->width();
|
||||
if (m_image_decoder)
|
||||
return m_image_decoder->width();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -59,8 +59,8 @@ int HTMLImageElement::preferred_height() const
|
|||
if (ok)
|
||||
return height;
|
||||
|
||||
if (m_image_loader)
|
||||
return m_image_loader->height();
|
||||
if (m_image_decoder)
|
||||
return m_image_decoder->height();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ RefPtr<LayoutNode> HTMLImageElement::create_layout_node(const StyleProperties* p
|
|||
|
||||
const GraphicsBitmap* HTMLImageElement::bitmap() const
|
||||
{
|
||||
if (!m_image_loader)
|
||||
if (!m_image_decoder)
|
||||
return nullptr;
|
||||
return m_image_loader->bitmap();
|
||||
return m_image_decoder->bitmap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue