Chromium Code Reviews| Index: core/fxcodec/codec/fx_codec_jpeg.cpp |
| diff --git a/core/fxcodec/codec/fx_codec_jpeg.cpp b/core/fxcodec/codec/fx_codec_jpeg.cpp |
| index c41dde943f040e9ad866dfa4950e70b9845c00f3..4646dd609e8dbd38d7e38b680ee97def0b1ff0f2 100644 |
| --- a/core/fxcodec/codec/fx_codec_jpeg.cpp |
| +++ b/core/fxcodec/codec/fx_codec_jpeg.cpp |
| @@ -234,9 +234,6 @@ static void _JpegEncode(const CFX_DIBSource* pSource, |
| #ifdef PDF_ENABLE_XFA |
| static void _JpegLoadAttribute(struct jpeg_decompress_struct* pInfo, |
| CFX_DIBAttribute* pAttribute) { |
| - if (pInfo == NULL || pAttribute == NULL) { |
| - return; |
| - } |
| if (pAttribute) { |
|
Tom Sepez
2016/06/02 20:09:48
Agree that pInfo is nonzero in its one caller.
Lei Zhang
2016/06/07 07:33:23
Acknowledged.
|
| pAttribute->m_nXDPI = pInfo->X_density; |
| pAttribute->m_nYDPI = pInfo->Y_density; |