1
Fork 0
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:
Matrix89 2020-01-05 16:54:38 +01:00 committed by Andreas Kling
parent 2dd35916e5
commit c2e1dd67c9
3 changed files with 26 additions and 8 deletions

View file

@ -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,