1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-05 10:47:36 +00:00

LibWeb: Cache the used CSS text-align property on LayoutNodeWithStyle

This commit is contained in:
Andreas Kling 2020-06-23 23:28:40 +02:00
parent ae181e1573
commit f4ecb5362f
6 changed files with 28 additions and 16 deletions

View file

@ -217,6 +217,7 @@ LayoutNodeWithStyle::LayoutNodeWithStyle(const Node* node, NonnullRefPtr<StylePr
{
m_has_style = true;
m_position = m_style->position();
m_text_align = m_style->text_align();
}
}