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

Unified Diff: core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp

Issue 1551563002: Fix partial information printed with blank window covering the center (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
index 865c6b71169af03a9c2900594de9801caaef6a0d..0330487311b5a3c9612abf6728bd875a9d3217ef 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
@@ -710,6 +710,8 @@ void CPDF_StreamContentParser::Handle_ExecuteXObject() {
CPDF_ImageObject* pObj = AddImage(pXObject, NULL, FALSE);
m_LastImageName = name;
m_pLastImage = pObj->m_pImage;
+ if (!m_pObjectList->m_bHasImageMask && m_pLastImage->IsMask())
Lei Zhang 2015/12/28 19:08:18 Can't this block reduce down to the following? m_
jun_fang 2015/12/28 23:33:05 Do you prefer the following change? if (!m_pObjec
Lei Zhang 2015/12/28 23:42:57 Sure, I retract my suggestion because it can incor
jun_fang 2015/12/29 02:13:27 Done.
+ m_pObjectList->m_bHasImageMask = TRUE;
} else if (type == "Form") {
AddForm(pXObject);
} else {
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698