Chromium Code Reviews| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| index e0fd3bfaeecea13e1b023d68982f3d35897ff2b9..4dcaa5a94f6914c04d7c40323c5308a966a99627 100644 |
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| @@ -4114,12 +4114,13 @@ FX_BOOL CPDF_DataAvail::CheckLinearizedData(IFX_DownloadHints* pHints) |
| FX_DWORD dwRet = 0; |
| if (!m_bMainXRefLoad) { |
|
Tom Sepez
2014/08/09 17:55:36
does m_bMainXRefLoad mean "main xref load succeede
jun_fang
2014/08/18 06:58:00
if |m_bMainXRefLoad| is true, it means that xref i
palmer
2014/08/19 20:26:41
In that case, I would call it |m_bMainXRefLoadSucc
|
| dwRet = ((CPDF_Parser *)m_pDocument->GetParser())->LoadLinearizedMainXRefTable(); |
| - if (dwRet == PDFPARSE_ERROR_SUCCESS) { |
| - if (!PreparePageItem()) { |
| - return FALSE; |
| - } |
| - m_bMainXRefLoadedOK = TRUE; |
| + if (dwRet != PDFPARSE_ERROR_SUCCESS) { |
| + return FALSE; |
| + } |
| + if (!PreparePageItem()) { |
| + return FALSE; |
| } |
| + m_bMainXRefLoadedOK = TRUE; |
|
Tom Sepez
2014/08/09 17:55:36
What's the difference between m_bMainXrefLoadedOK
jun_fang
2014/08/18 06:58:00
They are different. |m_bMainXrefLoadedOK is true|
palmer
2014/08/19 20:26:41
Wait, then what does |m_bMainXRefLoad| mean that i
|
| m_bMainXRefLoad = TRUE; |
| } |
| m_bLinearedDataOK = TRUE; |