[rust png] Move include of `png_decoder.h` from `.h` to `.cpp` file. This CL follows-up after https://pdfium-review.googlesource.com/135653. That earlier CL moved `PngDecoderDelegate` into a separate `.h` file. This move meant that `progressive_decoder.h` only 1) has to include `png_decoder_delegate.h` and 2) does *not* need to include `png_decoder.h` (where the `PngDecoder::Delegate` interface used to be declared). The 2nd part was missed in the earlier CL, so _this_ CL takes care of this: moving `#include ".../png_decoder.h"` from `progressive_decoder.h` into `progressive_decoder.cpp`. Bug: 444045690 Change-Id: I78efb07dca886f0e81c96b2d5bb089b56cfebffb Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/135790 Auto-Submit: Łukasz Anforowicz <lukasza@google.com> Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@google.com>
diff --git a/core/fxcodec/progressive_decoder.cpp b/core/fxcodec/progressive_decoder.cpp index d38aa72..dca172a 100644 --- a/core/fxcodec/progressive_decoder.cpp +++ b/core/fxcodec/progressive_decoder.cpp
@@ -37,6 +37,10 @@ #include "core/fxcodec/gif/gif_progressive_decoder.h" #endif // PDF_ENABLE_XFA_GIF +#ifdef PDF_ENABLE_XFA_PNG +#include "core/fxcodec/png/png_decoder.h" +#endif // PDF_ENABLE_XFA_PNG + #ifdef PDF_ENABLE_XFA_TIFF #include "core/fxcodec/tiff/tiff_decoder.h" #endif // PDF_ENABLE_XFA_TIFF
diff --git a/core/fxcodec/progressive_decoder.h b/core/fxcodec/progressive_decoder.h index c96138c..d19cfe6 100644 --- a/core/fxcodec/progressive_decoder.h +++ b/core/fxcodec/progressive_decoder.h
@@ -32,7 +32,6 @@ #endif // PDF_ENABLE_XFA_GIF #ifdef PDF_ENABLE_XFA_PNG -#include "core/fxcodec/png/png_decoder.h" #include "core/fxcodec/png/png_decoder_delegate.h" #endif // PDF_ENABLE_XFA_PNG