Refacrtoring wasm module

This commit is contained in:
Oleg Korshul
2022-01-20 20:31:00 +03:00
parent 683955bb5e
commit a9cb8de197
8 changed files with 56 additions and 24 deletions

View File

@ -147,7 +147,7 @@ namespace NSHtmlRenderer
RELEASEOBJECT(m_pInternal);
}
void CHTMLRendererText::Init(IOfficeDrawingFile* pFile)
void CHTMLRendererText::Init(IOfficeDrawingFile* pFile, int nCacheSize)
{
m_pInternal->m_oBrush.SetDefaultParams();
m_pInternal->m_oLastBrush.SetDefaultParams();
@ -207,7 +207,7 @@ namespace NSHtmlRenderer
}
m_pInternal->m_bIsFontsInit = true;
m_pInternal->m_oSmartText.Init(pFile->GetFonts());
m_pInternal->m_oSmartText.Init(pFile->GetFonts(), nCacheSize);
}
m_pInternal->m_oPage.ClearNoAttack();