Use span<> arguments in FAXModule and CJPX_Decoder.

Preferable to passing a const-ref vector of a specific allocator type.

Change-Id: I8cc5cb8cfd4b0f39e405585b789a099b9c9d9fd2
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/62632
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcodec/jpx/cjpx_decoder.h b/core/fxcodec/jpx/cjpx_decoder.h
index 11d94c1..1fe5043 100644
--- a/core/fxcodec/jpx/cjpx_decoder.h
+++ b/core/fxcodec/jpx/cjpx_decoder.h
@@ -8,7 +8,6 @@
 #define CORE_FXCODEC_JPX_CJPX_DECODER_H_
 
 #include <memory>
-#include <vector>
 
 #include "core/fxcrt/unowned_ptr.h"
 #include "third_party/base/span.h"
@@ -41,7 +40,7 @@
   bool StartDecode();
   bool Decode(uint8_t* dest_buf,
               uint32_t pitch,
-              const std::vector<uint8_t>& offsets);
+              pdfium::span<const uint8_t> offsets);
 
  private:
   const ColorSpaceOption m_ColorSpaceOption;