From 1c0de38c90947694b5d75349802a0b737418afe3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 30 May 2018 18:35:31 +0000 Subject: Exclude certain colorspace types for calculating transparency backdrop color. Per discussion for the "CS" entry in the PDF 1.7 spec table 7.13, several types of colorspaces do not meet the requirements of this particular colorspace entry. In terms of implementation, this avoids hitting a NOTREACHED() in CPDF_PatternCS::GetRGB(). BUG=chromium:847346 Change-Id: If994a91cdcd84b8977196256ee6926e20c4b74aa Reviewed-on: https://pdfium-review.googlesource.com/33210 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- constants/transparency.h | 1 + 1 file changed, 1 insertion(+) (limited to 'constants') diff --git a/constants/transparency.h b/constants/transparency.h index 22a89c33c4..6532868178 100644 --- a/constants/transparency.h +++ b/constants/transparency.h @@ -46,6 +46,7 @@ constexpr char kTR[] = "TR"; constexpr char kGroupSubType[] = "S"; constexpr char kTransparency[] = "Transparency"; +constexpr char kCS[] = "CS"; constexpr char kI[] = "I"; } // namespace transparency -- cgit v1.2.3