Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Issue 1908903003: Only call shading code with streams. (Closed)

Created:
4 years, 8 months ago by dsinclair
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Only call shading code with streams. There are 4 types of meshes that attempt to convert the shading object into a stream. According to spec (section 8.7.4.1 table 76), the shading object can be a stream or a dictionary. All of this shading code assumes it can load the mesh from a stream. The original code just early exited if it was not a stream. We skip the call if it is not a stream. BUG=pdfium:481 Committed: https://pdfium.googlesource.com/pdfium/+/4f70b53efb39e9b9b868d99999582282be57fe50

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M DEPS View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 1 chunk +20 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
dsinclair
PTAL. I'll update DEPS once the corpus tests land and will land this with the ...
4 years, 8 months ago (2016-04-21 14:50:41 UTC) #2
Tom Sepez
lgtm https://codereview.chromium.org/1908903003/diff/1/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/1908903003/diff/1/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode894 core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:894: if (pPattern->m_pShadingObj->IsStream()) { nit: maybe if (CPFD_Stream* pStream ...
4 years, 8 months ago (2016-04-21 16:24:24 UTC) #3
dsinclair
https://codereview.chromium.org/1908903003/diff/1/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp File core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp (right): https://codereview.chromium.org/1908903003/diff/1/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp#newcode894 core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp:894: if (pPattern->m_pShadingObj->IsStream()) { On 2016/04/21 16:24:24, Tom Sepez wrote: ...
4 years, 8 months ago (2016-04-21 16:56:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908903003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908903003/40001
4 years, 8 months ago (2016-04-21 16:59:59 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-21 17:54:46 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/4f70b53efb39e9b9b868d99999582282be57...

Powered by Google App Engine
This is Rietveld 408576698