summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-22 10:45:59 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-22 10:45:59 -0800
commit1aff265f7a210738fc817675c4391f8fe240b81d (patch)
tree38a9cd7ea6e6faca866211ebe28c636a0c104e48 /core/fpdfapi/font
parente50184c087ee6f90568ad1166a55f5d25be4d09e (diff)
downloadpdfium-1aff265f7a210738fc817675c4391f8fe240b81d.tar.xz
Continue splitting pageint.h into per-class files
Add cpdf_streamparser.h and cpdf_contentparser.h since there are already corresponding .cpp files with the same name. Review-Url: https://codereview.chromium.org/2521123003
Diffstat (limited to 'core/fpdfapi/font')
-rw-r--r--core/fpdfapi/font/cpdf_type3font.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/font/cpdf_type3font.cpp b/core/fpdfapi/font/cpdf_type3font.cpp
index e79f16a001..8a0a115992 100644
--- a/core/fpdfapi/font/cpdf_type3font.cpp
+++ b/core/fpdfapi/font/cpdf_type3font.cpp
@@ -17,6 +17,8 @@
#include "core/fxcrt/fx_system.h"
#include "third_party/base/stl_util.h"
+#define FPDF_MAX_TYPE3_FORM_LEVEL 4
+
CPDF_Type3Font::CPDF_Type3Font()
: m_pCharProcs(nullptr),
m_pPageResources(nullptr),
@@ -90,7 +92,7 @@ void CPDF_Type3Font::CheckType3FontMetrics() {
}
CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode) {
- if (m_CharLoadingDepth >= _FPDF_MAX_TYPE3_FORM_LEVEL_)
+ if (m_CharLoadingDepth >= FPDF_MAX_TYPE3_FORM_LEVEL)
return nullptr;
auto it = m_CacheMap.find(charcode);