summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_formcontrol.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 11:40:33 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 17:12:50 +0000
commit59454e1d00d37e9ec6b9341605d1e181e8dbec80 (patch)
tree32e4aefe15e3a25d6c7e6c68ee7dbe54591766a6 /core/fpdfdoc/cpdf_formcontrol.cpp
parent3862d24efe5ca45f29e4404e674f3152f492cb01 (diff)
downloadpdfium-59454e1d00d37e9ec6b9341605d1e181e8dbec80.tar.xz
Remove friends from form code
This CL removes the friends from CPDF_FormControl and CPDF_InterForm and adds accessors and moves methods to public as needed. Change-Id: I9d18c9158b1499ca935964b5f9dbd937f0806163 Reviewed-on: https://pdfium-review.googlesource.com/15533 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_formcontrol.cpp')
-rw-r--r--core/fpdfdoc/cpdf_formcontrol.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_formcontrol.cpp b/core/fpdfdoc/cpdf_formcontrol.cpp
index 62302fe499..7d4067b52f 100644
--- a/core/fpdfdoc/cpdf_formcontrol.cpp
+++ b/core/fpdfdoc/cpdf_formcontrol.cpp
@@ -180,8 +180,8 @@ void CPDF_FormControl::DrawControl(CFX_RenderDevice* pDevice,
CFX_Matrix matrix;
matrix.MatchRect(arect, form_bbox);
matrix.Concat(*pMatrix);
- CPDF_Form form(m_pField->GetForm()->m_pDocument.Get(),
- m_pField->GetForm()->m_pFormDict->GetDictFor("DR"), pStream);
+ CPDF_Form form(m_pField->GetForm()->GetDocument(),
+ m_pField->GetForm()->GetFormDict()->GetDictFor("DR"), pStream);
form.ParseContent();
CPDF_RenderContext context(pPage);
context.AppendLayer(&form, &matrix);
@@ -292,7 +292,8 @@ CPDF_Font* CPDF_FormControl::GetDefaultControlFont() {
if (pFonts) {
CPDF_Dictionary* pElement = pFonts->GetDictFor(csFontNameTag);
if (pElement) {
- CPDF_Font* pFont = m_pField->GetForm()->m_pDocument->LoadFont(pElement);
+ CPDF_Font* pFont =
+ m_pField->GetForm()->GetDocument()->LoadFont(pElement);
if (pFont)
return pFont;
}
@@ -308,7 +309,8 @@ CPDF_Font* CPDF_FormControl::GetDefaultControlFont() {
if (pFonts) {
CPDF_Dictionary* pElement = pFonts->GetDictFor(csFontNameTag);
if (pElement) {
- CPDF_Font* pFont = m_pField->GetForm()->m_pDocument->LoadFont(pElement);
+ CPDF_Font* pFont =
+ m_pField->GetForm()->GetDocument()->LoadFont(pElement);
if (pFont)
return pFont;
}