Fix some IWYU of cba_fontmap.h in cffl layer. Change-Id: Ib442b5d9cd8b6fd64015cc02101efda8e2bcc857 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/59212 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp index 4bc42af..65132f4 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.cpp +++ b/fpdfsdk/formfiller/cffl_formfiller.cpp
@@ -10,7 +10,6 @@ #include "constants/form_flags.h" #include "core/fpdfapi/page/cpdf_page.h" -#include "core/fpdfdoc/cba_fontmap.h" #include "core/fxge/cfx_renderdevice.h" #include "fpdfsdk/cpdfsdk_formfillenvironment.h" #include "fpdfsdk/cpdfsdk_pageview.h"
diff --git a/fpdfsdk/formfiller/cffl_formfiller.h b/fpdfsdk/formfiller/cffl_formfiller.h index 93e57c5..71dfad7 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.h +++ b/fpdfsdk/formfiller/cffl_formfiller.h
@@ -10,7 +10,6 @@ #include <map> #include <memory> -#include "core/fpdfdoc/cba_fontmap.h" #include "core/fxcrt/cfx_timer.h" #include "core/fxcrt/unowned_ptr.h" #include "fpdfsdk/cpdfsdk_fieldaction.h"
diff --git a/fpdfsdk/formfiller/cffl_textobject.cpp b/fpdfsdk/formfiller/cffl_textobject.cpp index 6845de1..a3b1538 100644 --- a/fpdfsdk/formfiller/cffl_textobject.cpp +++ b/fpdfsdk/formfiller/cffl_textobject.cpp
@@ -5,6 +5,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fpdfsdk/formfiller/cffl_textobject.h" +#include "core/fpdfdoc/cba_fontmap.h" #include "third_party/base/ptr_util.h" CPWL_Wnd* CFFL_TextObject::ResetPWLWindow(CPDFSDK_PageView* pPageView,
diff --git a/fpdfsdk/formfiller/cffl_textobject.h b/fpdfsdk/formfiller/cffl_textobject.h index ffadc73..a2381af 100644 --- a/fpdfsdk/formfiller/cffl_textobject.h +++ b/fpdfsdk/formfiller/cffl_textobject.h
@@ -11,6 +11,8 @@ #include "fpdfsdk/formfiller/cffl_formfiller.h" +class CBA_FontMap; + // Class to implement common functionality for CFFL_FormFiller sub-classes with // text fields. class CFFL_TextObject : public CFFL_FormFiller {