mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibWeb: Rename CSS::StyleResolver => StyleComputer
Resolved style is a spec concept that refers to the weird mix of computed style and used style reflected by getComputedStyle(). The purpose of this class is to produce the *computed* style for a given element, so let's call it StyleComputer.
This commit is contained in:
parent
3dc6f0bc47
commit
f8dd3e14ba
Notes:
sideshowbarker
2024-07-18 03:28:41 +09:00
Author: https://github.com/awesomekling
Commit: f8dd3e14ba
22 changed files with 59 additions and 59 deletions
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibWeb/CSS/StyleResolver.h>
|
||||
#include <LibWeb/CSS/StyleComputer.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/Event.h>
|
||||
#include <LibWeb/HTML/HTMLObjectElement.h>
|
||||
|
@ -46,7 +46,7 @@ RefPtr<Layout::Node> HTMLObjectElement::create_layout_node()
|
|||
if (m_should_show_fallback_content)
|
||||
return HTMLElement::create_layout_node();
|
||||
|
||||
auto style = document().style_resolver().resolve_style(*this);
|
||||
auto style = document().style_computer().compute_style(*this);
|
||||
if (style->display() == CSS::Display::None)
|
||||
return nullptr;
|
||||
if (m_image_loader.has_image())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue