Browse Source

Remove unnecessary call to UnloadDocument in ReloadStyleSheet

Lucien Catonnet 5 years ago
parent
commit
01d821b76f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Source/Core/ElementDocument.cpp

+ 0 - 1
Source/Core/ElementDocument.cpp

@@ -223,7 +223,6 @@ void ElementDocument::ReloadStyleSheet()
 		return;
 		return;
 
 
 	SetStyleSheet(temp_doc->GetStyleSheet());
 	SetStyleSheet(temp_doc->GetStyleSheet());
-	context->UnloadDocument(static_cast<ElementDocument*>(temp_doc.get()));
 }
 }
 
 
 // Brings the document to the front of the document stack.
 // Brings the document to the front of the document stack.