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

Issue 1414283003: Revert "Make m_pShadingObj a CPDF_Stream instead of CPDF_Object." (Closed)

Created:
5 years, 1 month ago by dsinclair
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Revert "Make m_pShadingObj a CPDF_Stream instead of CPDF_Object." There appear to be a bunch of corpus tests which fail with this change such as FAILURE: shading1.pdf This reverts commit 85361b227ad6786d2aeef8409b79a8d077a26ee9. Make m_pShadingObj a CPDF_Stream instead of CPDF_Object. This object is required to be a stream and was being converted as such. With the new type checking this caused us to pass a nullptr where previously we'd have, incorrectly, cast a CPDF_Dictionary to a CPDF_Stream. This CL changes the m_pShadingObj to always be a CPDF_Stream. Then, we never go down the bad code path because we check if m_pShadingObj is nullptr earlier and bail out. BUG=chromium:547706 TBR=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/95d25e4585358c74ae91c2ed5e08099ebbfdf24c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -128 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M core/include/fpdfapi/fpdf_resource.h View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp View 1 chunk +8 lines, -6 lines 0 comments Download
D core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp View 1 chunk +0 lines, -16 lines 0 comments Download
M pdfium.gyp View 1 chunk +0 lines, -1 line 0 comments Download
D testing/resources/bug_547706.in View 1 chunk +0 lines, -43 lines 0 comments Download
D testing/resources/bug_547706.pdf View 1 chunk +0 lines, -55 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
dsinclair
5 years, 1 month ago (2015-10-26 20:25:41 UTC) #1
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
95d25e4585358c74ae91c2ed5e08099ebbfdf24c (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698