Browse Source

Dirty line-height when font-size changes

Michael Ragazzon 6 years ago
parent
commit
b001f00455
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/Core/ElementStyle.cpp

+ 3 - 0
Source/Core/ElementStyle.cpp

@@ -538,7 +538,10 @@ PropertyIdSet ElementStyle::ComputeValues(Style::ComputedValues& values, const S
 			values.font_size = parent_values->font_size;
 		
 		if (font_size_before != values.font_size)
+		{
 			dirty_em_properties = true;
+			dirty_properties.Insert(PropertyId::LineHeight);
+		}
 	}
 	else
 	{