| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
|
| index 28c35c899ec7942ee39bd678fa1405befeb3451b..05d85e6398937f7392c37db37591f7aa9dfb629e 100644
|
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
|
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
|
| @@ -9,7 +9,7 @@
|
| #include <algorithm>
|
|
|
| #include "core/include/fpdfapi/cpdf_parser.h"
|
| -#include "core/include/fpdfapi/fpdf_parser.h"
|
| +#include "core/include/fpdfapi/fpdf_parser_decode.h"
|
| #include "core/include/fxcrt/fx_string.h"
|
| #include "third_party/base/stl_util.h"
|
|
|
| @@ -669,6 +669,13 @@ FX_BOOL CPDF_Dictionary::KeyExist(const CFX_ByteStringC& key) const {
|
| return pdfium::ContainsKey(m_Map, key);
|
| }
|
|
|
| +bool CPDF_Dictionary::IsSignatureDict() const {
|
| + CPDF_Object* pType = GetElementValue("Type");
|
| + if (!pType)
|
| + pType = GetElementValue("FT");
|
| + return pType && pType->GetString() == "Sig";
|
| +}
|
| +
|
| void CPDF_Dictionary::SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj) {
|
| ASSERT(IsDictionary());
|
| // Avoid 2 constructions of CFX_ByteString.
|
|
|