mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
LibHTML: Replace StyleProperties::create(StyleProperties) with clone()
This commit is contained in:
parent
2dd35916e5
commit
c2e1dd67c9
3 changed files with 26 additions and 8 deletions
|
@ -165,7 +165,7 @@ void Element::recompute_style()
|
|||
|
||||
RefPtr<StyleProperties> Element::computed_style()
|
||||
{
|
||||
auto properties = StyleProperties::create(*m_resolved_style);
|
||||
auto properties = m_resolved_style->clone();
|
||||
if (layout_node() && layout_node()->has_style()) {
|
||||
CSS::PropertyID box_model_metrics[] = {
|
||||
CSS::PropertyID::MarginTop,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue