Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: xfa/src/fdp/src/css/fde_csssyntax.cpp

Issue 1724483002: Remove CFX_ThreadLock (its a no-op) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fdp/src/css/fde_csscache.h ('k') | xfa/src/fdp/src/fde/fde_render.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fdp/src/css/fde_csssyntax.cpp
diff --git a/xfa/src/fdp/src/css/fde_csssyntax.cpp b/xfa/src/fdp/src/css/fde_csssyntax.cpp
index b546d1046ff74429c498f40e13c431dd284fef9c..15b8dbb23a9bb1eb1a6bfcd6dbeb9168e574b6d7 100644
--- a/xfa/src/fdp/src/css/fde_csssyntax.cpp
+++ b/xfa/src/fdp/src/css/fde_csssyntax.cpp
@@ -444,12 +444,10 @@ int32_t CFDE_CSSTextBuf::LoadFromStream(IFX_Stream* pTxtStream,
if (!ExpandBuf(iMaxChars)) {
return 0;
}
- pTxtStream->Lock();
if (pTxtStream->GetPosition() != iStreamOffset) {
pTxtStream->Seek(FX_STREAMSEEK_Begin, iStreamOffset);
}
m_iDatLen = pTxtStream->ReadString(m_pBuffer, iMaxChars, bEOS);
- pTxtStream->Unlock();
return m_iDatLen;
}
FX_BOOL CFDE_CSSTextBuf::ExpandBuf(int32_t iDesiredSize) {
« no previous file with comments | « xfa/src/fdp/src/css/fde_csscache.h ('k') | xfa/src/fdp/src/fde/fde_render.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698