From 6e59fb5fda71eb527568a58d9c948b5f76c9bdc2 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 18 Jan 2018 19:03:58 +0000 Subject: Remove more unneeded includes and code from headers. Change-Id: I0a07dbc9850bef2184ed35ff04b08385fc1bdd17 Reviewed-on: https://pdfium-review.googlesource.com/22891 Commit-Queue: Lei Zhang Reviewed-by: dsinclair --- xfa/fgas/layout/cfx_break.cpp | 1 + xfa/fgas/layout/cfx_break.h | 3 ++- xfa/fgas/layout/cfx_rtfbreak.cpp | 1 + xfa/fgas/layout/cfx_rtfbreak.h | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'xfa/fgas/layout') diff --git a/xfa/fgas/layout/cfx_break.cpp b/xfa/fgas/layout/cfx_break.cpp index 6e1103cf65..0f52a2d274 100644 --- a/xfa/fgas/layout/cfx_break.cpp +++ b/xfa/fgas/layout/cfx_break.cpp @@ -10,6 +10,7 @@ #include #include "third_party/base/stl_util.h" +#include "xfa/fgas/font/cfgas_gefont.h" namespace { diff --git a/xfa/fgas/layout/cfx_break.h b/xfa/fgas/layout/cfx_break.h index 322fa2be8e..789220d9da 100644 --- a/xfa/fgas/layout/cfx_break.h +++ b/xfa/fgas/layout/cfx_break.h @@ -10,9 +10,10 @@ #include #include "core/fxcrt/retain_ptr.h" -#include "xfa/fgas/font/cfgas_gefont.h" #include "xfa/fgas/layout/cfx_breakline.h" +class CFGAS_GEFont; + struct FX_TPO { bool operator<(const FX_TPO& that) const { return pos < that.pos; } diff --git a/xfa/fgas/layout/cfx_rtfbreak.cpp b/xfa/fgas/layout/cfx_rtfbreak.cpp index 761bd2fc03..3ef0ef2624 100644 --- a/xfa/fgas/layout/cfx_rtfbreak.cpp +++ b/xfa/fgas/layout/cfx_rtfbreak.cpp @@ -10,6 +10,7 @@ #include "core/fxcrt/fx_arabic.h" #include "core/fxcrt/fx_bidi.h" +#include "core/fxge/cfx_renderdevice.h" #include "third_party/base/stl_util.h" #include "xfa/fgas/font/cfgas_gefont.h" #include "xfa/fgas/layout/cfx_linebreak.h" diff --git a/xfa/fgas/layout/cfx_rtfbreak.h b/xfa/fgas/layout/cfx_rtfbreak.h index 5a3f4313b5..67052d23ad 100644 --- a/xfa/fgas/layout/cfx_rtfbreak.h +++ b/xfa/fgas/layout/cfx_rtfbreak.h @@ -13,11 +13,11 @@ #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_unicode.h" #include "core/fxcrt/retain_ptr.h" -#include "core/fxge/cfx_renderdevice.h" #include "xfa/fgas/layout/cfx_break.h" #include "xfa/fxfa/cxfa_textuserdata.h" class CFGAS_GEFont; +class FXTEXT_CHARPOS; enum class CFX_RTFLineAlignment { Left = 0, -- cgit v1.2.3