summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_annot.cpp
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-09 11:40:58 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-09 11:40:59 -0700
commite7107f48ddb9309e1664d84ec360ce06ec3201e2 (patch)
tree8cb7bf1cc8aeb0e97f928065ec25f8ee66dd4ca5 /core/fpdfdoc/cpdf_annot.cpp
parent16fccc51456dbab7e392c3952cc367723f9694f6 (diff)
downloadpdfium-e7107f48ddb9309e1664d84ec360ce06ec3201e2.tar.xz
Generate default AP stream for circle annotation.
This patch generates a default AP stream for circle annotation so that circle annotations without AP stream can be displayed. Also, roll DEPS for testing/corpus to 71d1f22 to test circle annotations. BUG=62625 Review-Url: https://codereview.chromium.org/2228093002
Diffstat (limited to 'core/fpdfdoc/cpdf_annot.cpp')
-rw-r--r--core/fpdfdoc/cpdf_annot.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_annot.cpp b/core/fpdfdoc/cpdf_annot.cpp
index 252e8361dd..ce84df1ee0 100644
--- a/core/fpdfdoc/cpdf_annot.cpp
+++ b/core/fpdfdoc/cpdf_annot.cpp
@@ -21,7 +21,9 @@ CPDF_Annot::CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument)
: m_pAnnotDict(pDict),
m_pDocument(pDocument),
m_sSubtype(m_pAnnotDict->GetStringBy("Subtype")) {
- if (m_sSubtype == "Highlight")
+ if (m_sSubtype == "Circle")
+ CPVT_GenerateAP::GenerateCircleAP(m_pDocument, m_pAnnotDict);
+ else if (m_sSubtype == "Highlight")
CPVT_GenerateAP::GenerateHighlightAP(m_pDocument, m_pAnnotDict);
else if (m_sSubtype == "Square")
CPVT_GenerateAP::GenerateSquareAP(m_pDocument, m_pAnnotDict);