diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-22 12:00:56 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-22 12:00:56 -0800 |
commit | d5712ac571f3487fe3f74617fdab007a11a09052 (patch) | |
tree | 795c2525125d032988854ca76fc0fca76ca07299 /core/src/fpdfdoc/doc_annot.cpp | |
parent | 9ebc84109d7d2f7b81f06f19e5db20888e026c3b (diff) | |
download | pdfium-d5712ac571f3487fe3f74617fdab007a11a09052.tar.xz |
Change _PDF_RenderItem to CPDF_RenderContext::Layer.
The _CAPS class naming convention violates reserved
identifier rules.
R=ochang@chromium.org
Review URL: https://codereview.chromium.org/1620523002 .
Diffstat (limited to 'core/src/fpdfdoc/doc_annot.cpp')
-rw-r--r-- | core/src/fpdfdoc/doc_annot.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/fpdfdoc/doc_annot.cpp b/core/src/fpdfdoc/doc_annot.cpp index 814496ff7f..5786349490 100644 --- a/core/src/fpdfdoc/doc_annot.cpp +++ b/core/src/fpdfdoc/doc_annot.cpp @@ -227,7 +227,8 @@ FX_BOOL CPDF_Annot::DrawAppearance(CPDF_Page* pPage, return FALSE; } CPDF_RenderContext context(pPage); - context.DrawObjectList(pDevice, pForm, &matrix, pOptions); + context.AppendLayer(pForm, &matrix); + context.Render(pDevice, pOptions, nullptr); return TRUE; } FX_BOOL CPDF_Annot::DrawInContext(const CPDF_Page* pPage, @@ -240,7 +241,7 @@ FX_BOOL CPDF_Annot::DrawInContext(const CPDF_Page* pPage, if (!pForm) { return FALSE; } - pContext->AppendObjectList(pForm, &matrix); + pContext->AppendLayer(pForm, &matrix); return TRUE; } void CPDF_Annot::DrawBorder(CFX_RenderDevice* pDevice, |