From 33e9b26ba3c191262d0abb945fda1efb3cdb3051 Mon Sep 17 00:00:00 2001 From: jaepark Date: Tue, 2 Aug 2016 16:22:52 -0700 Subject: Generate default AP stream for underline annotation. This patch generates a default AP stream for underline annotation so that underline annotations without AP stream can be displayed. Also, roll DEPS for testing/corpus to cae29d1 to test underline annotations. BUG=62625 Review-Url: https://codereview.chromium.org/2205543002 --- core/fpdfdoc/cpdf_annot.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/fpdfdoc/cpdf_annot.cpp') diff --git a/core/fpdfdoc/cpdf_annot.cpp b/core/fpdfdoc/cpdf_annot.cpp index a8578fc28d..77c117dae4 100644 --- a/core/fpdfdoc/cpdf_annot.cpp +++ b/core/fpdfdoc/cpdf_annot.cpp @@ -22,6 +22,8 @@ CPDF_Annot::CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument) m_sSubtype(m_pAnnotDict->GetStringBy("Subtype")) { if (m_sSubtype == "Highlight") CPVT_GenerateAP::GenerateHighlightAP(m_pDocument, m_pAnnotDict); + else if (m_sSubtype == "Underline") + CPVT_GenerateAP::GenerateUnderlineAP(m_pDocument, m_pAnnotDict); } CPDF_Annot::~CPDF_Annot() { -- cgit v1.2.3