summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_streamcontentparser.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-25 22:01:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-25 22:01:07 +0000
commit76fb29d5ebae4fea2e5d1221f77e218a9b4b309a (patch)
treee274d6094b7850c7fc86325da790393a9bd145d8 /core/fpdfapi/page/cpdf_streamcontentparser.h
parent8c955c9d307272d43d532cd206abc4077076d212 (diff)
downloadpdfium-76fb29d5ebae4fea2e5d1221f77e218a9b4b309a.tar.xz
Clean up CPDF_StreamContentParser::AddTextObject().chromium/3473
Change-Id: I1794848607f2db3f1ef39dbd221b7219feb9254c Reviewed-on: https://pdfium-review.googlesource.com/35990 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_streamcontentparser.h')
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.h b/core/fpdfapi/page/cpdf_streamcontentparser.h
index adcb2a5b47..a5efe48d46 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.h
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.h
@@ -102,10 +102,12 @@ class CPDF_StreamContentParser {
return static_cast<int>(GetNumber(index));
}
void OnOperator(const ByteStringView& op);
- void AddTextObject(ByteString* pText,
+ void AddTextObject(const ByteString* pStrs,
float fInitKerning,
- float* pKerning,
- int count);
+ const std::vector<float>& kernings,
+ size_t nSegs);
+ float GetHorizontalTextSize(float fKerning) const;
+ float GetVerticalTextSize(float fKerning) const;
void OnChangeTextMatrix();
void ParsePathObject();