summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_appstream.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-24 08:57:35 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-24 13:32:10 +0000
commitc08dc39850188d96ad81f5800c7a51d2663eeb44 (patch)
tree9e132af2dd7989ea3375013c1109dd6dadb4cd55 /fpdfsdk/pdfwindow/cpwl_appstream.cpp
parent677275efd05ce5dcbbd62f474db1f0a59e45cce8 (diff)
downloadpdfium-c08dc39850188d96ad81f5800c7a51d2663eeb44.tar.xz
Remove fx_edit.h
This CL moves GetPDFWordString to be a method on CFX_Edit. The FX_EDIT_ISLATINWORD define is moved into fx_edit.h. CFWL_Edit::FX_EDIT_ISLATINWORD is renamed to FxEditIsLatinWord to make less confusing with the define. Change-Id: I47d12d41447b268894a1d0376ac4b2bdb409e2df Reviewed-on: https://pdfium-review.googlesource.com/8531 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_appstream.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_appstream.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_appstream.cpp b/fpdfsdk/pdfwindow/cpwl_appstream.cpp
index 969c521d68..f7ba4c465c 100644
--- a/fpdfsdk/pdfwindow/cpwl_appstream.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_appstream.cpp
@@ -577,8 +577,7 @@ CFX_ByteString GetEditAppStream(CFX_Edit* pEdit,
nCurFontIndex = word.nFontIndex;
}
- sWords << GetPDFWordString(pEdit->GetFontMap(), nCurFontIndex,
- word.Word, SubWord);
+ sWords << pEdit->GetPDFWordString(nCurFontIndex, word.Word, SubWord);
}
oldplace = place;
@@ -600,8 +599,8 @@ CFX_ByteString GetEditAppStream(CFX_Edit* pEdit,
nCurFontIndex = word.nFontIndex;
}
- sEditStream << GetWordRenderString(GetPDFWordString(
- pEdit->GetFontMap(), nCurFontIndex, word.Word, SubWord));
+ sEditStream << GetWordRenderString(
+ pEdit->GetPDFWordString(nCurFontIndex, word.Word, SubWord));
}
}
}