Change CPVT_LineInfo to be a struct.

It only contains data members, and they are all public.

Change-Id: I23e7c3824a2366bb1964c46df3bfb400bb6e0f64
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/79030
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfdoc/cpvt_lineinfo.h b/core/fpdfdoc/cpvt_lineinfo.h
index 96a3234..3723d35 100644
--- a/core/fpdfdoc/cpvt_lineinfo.h
+++ b/core/fpdfdoc/cpvt_lineinfo.h
@@ -7,30 +7,17 @@
 #ifndef CORE_FPDFDOC_CPVT_LINEINFO_H_
 #define CORE_FPDFDOC_CPVT_LINEINFO_H_
 
-#include "core/fxcrt/fx_system.h"
+#include <stdint.h>
 
-class CPVT_LineInfo {
- public:
-  CPVT_LineInfo();
-
-  int32_t nTotalWord;
-  int32_t nBeginWordIndex;
-  int32_t nEndWordIndex;
-  float fLineX;
-  float fLineY;
-  float fLineWidth;
-  float fLineAscent;
-  float fLineDescent;
+struct CPVT_LineInfo {
+  int32_t nTotalWord = 0;
+  int32_t nBeginWordIndex = -1;
+  int32_t nEndWordIndex = -1;
+  float fLineX = 0.0f;
+  float fLineY = 0.0f;
+  float fLineWidth = 0.0f;
+  float fLineAscent = 0.0f;
+  float fLineDescent = 0.0f;
 };
 
-inline CPVT_LineInfo::CPVT_LineInfo()
-    : nTotalWord(0),
-      nBeginWordIndex(-1),
-      nEndWordIndex(-1),
-      fLineX(0.0f),
-      fLineY(0.0f),
-      fLineWidth(0.0f),
-      fLineAscent(0.0f),
-      fLineDescent(0.0f) {}
-
 #endif  // CORE_FPDFDOC_CPVT_LINEINFO_H_
diff --git a/core/fpdfdoc/csection.h b/core/fpdfdoc/csection.h
index 067dd13..7a307cc 100644
--- a/core/fpdfdoc/csection.h
+++ b/core/fpdfdoc/csection.h
@@ -19,7 +19,7 @@
 #include "core/fxcrt/unowned_ptr.h"
 
 class CPDF_VariableText;
-class CPVT_LineInfo;
+struct CPVT_LineInfo;
 struct CPVT_WordLine;
 struct CPVT_WordPlace;