summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-04 04:29:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-04 04:29:30 +0000
commita7a957f7cec2380b1f04f7166780dba50c0d5d85 (patch)
tree3ebad1796f7c90e9d07c60f93ec325f7fdea09f9
parentac1dfb0ef15e273aab6476a460dfd4f2778e9703 (diff)
downloadpdfium-chromium/3513.tar.xz
Use more text object state in DrawTextPathWithPattern().chromium/3514chromium/3513chromium/3512
BUG=chromium:668762 Change-Id: Iaf3fc9bcf68b8da2c947bbd78c5d72f78195b621 Reviewed-on: https://pdfium-review.googlesource.com/35991 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--DEPS2
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/DEPS b/DEPS
index 50cbb69b71..f211f446d5 100644
--- a/DEPS
+++ b/DEPS
@@ -29,7 +29,7 @@ vars = {
'jinja2_revision': '45571de473282bd1d8b63a8dfcb1fd268d0635d2',
'jpeg_turbo_revision': '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
- 'pdfium_tests_revision': '4e2bafc0b6d0f5782f1d99dbca827b29a470ec36',
+ 'pdfium_tests_revision': '96223aa3d32dcb606f4f33c5647abfd4e413f220',
'skia_revision': '588f879677d4f36e16a42dd96876534f104c2e2f',
'tools_memory_revision': 'f7b00daf4df7f6c469f5fbc68d7f40f6bd15d6e6',
'trace_event_revision': '211b3ed9d0481b4caddbee1322321b86a483ca1f',
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index 23eeefd0ed..ee3faafea3 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -1991,6 +1991,7 @@ void CPDF_RenderStatus::DrawTextPathWithPattern(const CPDF_TextObject* textobj,
path.m_FillType = FXFILL_WINDING;
path.m_ClipPath.AppendTexts(&pCopy);
path.m_ColorState = textobj->m_ColorState;
+ path.m_GeneralState = textobj->m_GeneralState;
path.m_Path.AppendRect(textobj->m_Left, textobj->m_Bottom, textobj->m_Right,
textobj->m_Top);
path.m_Left = textobj->m_Left;