diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-07 10:10:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 10:10:45 -0700 |
commit | 705f829624bfc53e316f750bf91a32c8ae3ad1b5 (patch) | |
tree | e5ec525491a494bc34f2a34bbace458d2b433331 /xfa/fgas/layout/fgas_textbreak.h | |
parent | 8975902470dbfc15289b69f41e43ad0433ca51ae (diff) | |
download | pdfium-705f829624bfc53e316f750bf91a32c8ae3ad1b5.tar.xz |
Remove FDE_HVISUALOBJ.
This CL removes the FDE_HVISUALOBJ in favour of the concrete FDE_TEXTEDITPIECE
class. The parameter was removed from any method which didn't use it and the
non-implemented methods were removed.
Review-Url: https://codereview.chromium.org/2047693002
Diffstat (limited to 'xfa/fgas/layout/fgas_textbreak.h')
-rw-r--r-- | xfa/fgas/layout/fgas_textbreak.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xfa/fgas/layout/fgas_textbreak.h b/xfa/fgas/layout/fgas_textbreak.h index 01e688f15d..db0b7f604e 100644 --- a/xfa/fgas/layout/fgas_textbreak.h +++ b/xfa/fgas/layout/fgas_textbreak.h @@ -70,11 +70,15 @@ class IFX_TxtAccess; #define FX_TXTLINEALIGNMENT_HigherMask 0x0C #define FX_TXTBREAK_MinimumTabWidth 160000 +struct FDE_TEXTEDITPIECE; + class IFX_TxtAccess { public: virtual ~IFX_TxtAccess() {} - virtual FX_WCHAR GetChar(void* pIdentity, int32_t index) const = 0; - virtual int32_t GetWidth(void* pIdentity, int32_t index) const = 0; + virtual FX_WCHAR GetChar(const FDE_TEXTEDITPIECE* pIdentity, + int32_t index) const = 0; + virtual int32_t GetWidth(const FDE_TEXTEDITPIECE* pIdentity, + int32_t index) const = 0; }; struct FX_TXTRUN { @@ -95,7 +99,7 @@ struct FX_TXTRUN { bSkipSpace(TRUE) {} IFX_TxtAccess* pAccess; - void* pIdentity; + const FDE_TEXTEDITPIECE* pIdentity; CFX_WideString wsStr; int32_t* pWidths; int32_t iLength; |