Kaynağa Gözat

Faster loading of cached style sheets.

Michael Ragazzon 5 yıl önce
ebeveyn
işleme
bc8b2560df
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      Source/Core/StyleSheetFactory.cpp

+ 2 - 0
Source/Core/StyleSheetFactory.cpp

@@ -104,6 +104,8 @@ SharedPtr<StyleSheet> StyleSheetFactory::GetStyleSheet(const String& sheet_name)
 	if (!sheet)
 		return nullptr;
 
+	sheet->OptimizeNodeProperties();
+
 	// Add it to the cache, and add a reference count so the cache will keep hold of it.
 	instance->stylesheets[sheet_name] = sheet;