diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-03-28 20:00:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-28 20:00:35 +0000 |
commit | 53a8093c6ef694ec520fe0b087fbac86af97f5e8 (patch) | |
tree | 519a805d66eed415e310eb67a05212c6d217025d /core/fpdfdoc/cpdf_defaultappearance.h | |
parent | 971a674ef17526ad37ce55ba90110830b94889d0 (diff) | |
download | pdfium-53a8093c6ef694ec520fe0b087fbac86af97f5e8.tar.xz |
Use CPDF_DefaultAppearance instead of custom parsing
This CL moves code over to using CPDF_DefaultAppearance instead of
calling the CPDF_SimpleParser directly. This means the code for finding
a specific tag start can move into CPDF_DefaultAppearance directly.
Change-Id: I1dc64e54aedd03d059b963121d466f3eb75c17db
Reviewed-on: https://pdfium-review.googlesource.com/28410
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_defaultappearance.h')
-rw-r--r-- | core/fpdfdoc/cpdf_defaultappearance.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfdoc/cpdf_defaultappearance.h b/core/fpdfdoc/cpdf_defaultappearance.h index af13a3f8bc..79ad0bb526 100644 --- a/core/fpdfdoc/cpdf_defaultappearance.h +++ b/core/fpdfdoc/cpdf_defaultappearance.h @@ -7,6 +7,7 @@ #ifndef CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_ #define CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_ +#include "core/fpdfapi/parser/cpdf_simple_parser.h" #include "core/fpdfdoc/cpdf_defaultappearance.h" #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" @@ -29,6 +30,10 @@ class CPDF_DefaultAppearance { void GetColor(int& iColorType, float fc[4]); void GetColor(FX_ARGB& color, int& iColorType); + bool FindTagParamFromStartForTesting(CPDF_SimpleParser* parser, + const ByteStringView& token, + int nParams); + private: ByteString m_csDA; }; |