diff options
author | jaepark <jaepark@google.com> | 2016-08-26 16:16:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-26 16:16:10 -0700 |
commit | 9ed91376d562f3c6e7ca0a99035a74502f648776 (patch) | |
tree | d164689b94d520448de46c8e4dbc9ea0abf788cf /core/fpdfdoc/cpdf_annot.cpp | |
parent | 987f3ee94c3cb8e4a6113ad05453a2948469386c (diff) | |
download | pdfium-9ed91376d562f3c6e7ca0a99035a74502f648776.tar.xz |
Rename CPDFSDK_Annot::GetType to CPDFSDK_Annot::GetAnnotSubtype.
CPDFSDK_Annot::GetType should be renamed to GetAnnotSubtype as it returns
annotation subtype. Also, CPDFSDK_Annot::GetSubType is only used to check if
the annotation is signature widget. Thus, change the method to
IsSignatureWidget. Lastly, rename CPDF_Annot::GetSubType to
CPDF_Annot::GetSubtype to match with spec.
Review-Url: https://codereview.chromium.org/2287703002
Diffstat (limited to 'core/fpdfdoc/cpdf_annot.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_annot.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_annot.cpp b/core/fpdfdoc/cpdf_annot.cpp index e70ee27a98..10360eaf68 100644 --- a/core/fpdfdoc/cpdf_annot.cpp +++ b/core/fpdfdoc/cpdf_annot.cpp @@ -51,7 +51,7 @@ void CPDF_Annot::GenerateAPIfNeeded() { void CPDF_Annot::ClearCachedAP() { m_APMap.clear(); } -CFX_ByteString CPDF_Annot::GetSubType() const { +CFX_ByteString CPDF_Annot::GetSubtype() const { return m_sSubtype; } @@ -186,9 +186,9 @@ FX_BOOL CPDF_Annot::DrawInContext(const CPDF_Page* pPage, void CPDF_Annot::DrawBorder(CFX_RenderDevice* pDevice, const CFX_Matrix* pUser2Device, const CPDF_RenderOptions* pOptions) { - if (GetSubType() == "Popup") { + if (GetSubtype() == "Popup") return; - } + uint32_t annot_flags = GetFlags(); if (annot_flags & ANNOTFLAG_HIDDEN) { return; |