From 68eefa6a6f6bbab73000a29e2cac3e104be1cc81 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 30 Aug 2017 12:16:16 -0400 Subject: Rebuild CFDE_TextEditEngine. This CL rebuilds the text edit engine in a simpler fashion. Instead of depending on multiple pages, paragraphs and buffer fields there is a single text edit engine which contains a gap buffer. This makes the code easier to understand and follow. Change-Id: I10fe85603fa9ed15a647eaac2d931f113cd0c7b0 Reviewed-on: https://pdfium-review.googlesource.com/11990 Commit-Queue: dsinclair Reviewed-by: Henrique Nakashima Reviewed-by: Ryan Harrison --- xfa/fgas/layout/cfx_txtbreak.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fgas/layout/cfx_txtbreak.h') diff --git a/xfa/fgas/layout/cfx_txtbreak.h b/xfa/fgas/layout/cfx_txtbreak.h index 95130c070d..72614bc2e7 100644 --- a/xfa/fgas/layout/cfx_txtbreak.h +++ b/xfa/fgas/layout/cfx_txtbreak.h @@ -14,9 +14,9 @@ #include "core/fxcrt/cfx_char.h" #include "core/fxge/cfx_renderdevice.h" #include "third_party/base/stl_util.h" -#include "xfa/fde/cfde_txtedtpage.h" #include "xfa/fgas/layout/cfx_break.h" +class CFDE_TextEditEngine; class CFGAS_GEFont; struct FDE_TEXTEDITPIECE; @@ -39,7 +39,7 @@ struct FX_TXTRUN { FX_TXTRUN(const FX_TXTRUN& other); ~FX_TXTRUN(); - CFDE_TxtEdtPage* pAccess; + CFDE_TextEditEngine* pEdtEngine; const FDE_TEXTEDITPIECE* pIdentity; CFX_WideString wsStr; int32_t* pWidths; -- cgit v1.2.3