mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:15:07 +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
22 changed files with 59 additions and 59 deletions
|
@ -21,7 +21,7 @@ HTMLBRElement::~HTMLBRElement()
|
|||
|
||||
RefPtr<Layout::Node> HTMLBRElement::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;
|
||||
return adopt_ref(*new Layout::BreakNode(document(), *this, move(style)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue