diff options
author | Nicolas Pena <npm@chromium.org> | 2018-01-03 16:30:43 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-04 20:47:03 +0000 |
commit | 492ad362da4953ddcbd5c12a6517aabd1f513454 (patch) | |
tree | 6a1d024ce57ee376b50b3561b003e435f137cbc1 /fpdfsdk/pwl/cpwl_edit_impl.h | |
parent | c560a8c11a6f8ee239e570db8c022ae0fd2a4db5 (diff) | |
download | pdfium-492ad362da4953ddcbd5c12a6517aabd1f513454.tar.xz |
Remove unneeded vector implementations from cpwl_edit_impl
Change-Id: I98f3f1773b570dc525618ada997425000e1e4c58
Reviewed-on: https://pdfium-review.googlesource.com/22191
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_edit_impl.h')
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit_impl.h | 40 |
1 files changed, 6 insertions, 34 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.h b/fpdfsdk/pwl/cpwl_edit_impl.h index 387f6e700d..e0d8324a4c 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.h +++ b/fpdfsdk/pwl/cpwl_edit_impl.h @@ -38,36 +38,6 @@ struct CPWL_EditImpl_LineRect { CFX_FloatRect m_rcLine; }; -class CPWL_EditImpl_LineRectArray { - public: - CPWL_EditImpl_LineRectArray(); - ~CPWL_EditImpl_LineRectArray(); - - void operator=(CPWL_EditImpl_LineRectArray&& rects); - void Add(const CPVT_WordRange& wrLine, const CFX_FloatRect& rcLine); - - int32_t GetSize() const; - CPWL_EditImpl_LineRect* GetAt(int32_t nIndex) const; - - private: - std::vector<std::unique_ptr<CPWL_EditImpl_LineRect>> m_LineRects; -}; - -class CPWL_EditImpl_RectArray { - public: - CPWL_EditImpl_RectArray(); - ~CPWL_EditImpl_RectArray(); - - void Clear(); - void Add(const CFX_FloatRect& rect); - - int32_t GetSize() const; - CFX_FloatRect* GetAt(int32_t nIndex) const; - - private: - std::vector<std::unique_ptr<CFX_FloatRect>> m_Rects; -}; - class CPWL_EditImpl_Refresh { public: CPWL_EditImpl_Refresh(); @@ -76,13 +46,15 @@ class CPWL_EditImpl_Refresh { void BeginRefresh(); void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect); void NoAnalyse(); - const CPWL_EditImpl_RectArray* GetRefreshRects() const; + std::vector<CFX_FloatRect>* GetRefreshRects(); void EndRefresh(); private: - CPWL_EditImpl_LineRectArray m_NewLineRects; - CPWL_EditImpl_LineRectArray m_OldLineRects; - CPWL_EditImpl_RectArray m_RefreshRects; + void Add(const CFX_FloatRect& new_rect); + + std::vector<CPWL_EditImpl_LineRect> m_NewLineRects; + std::vector<CPWL_EditImpl_LineRect> m_OldLineRects; + std::vector<CFX_FloatRect> m_RefreshRects; }; class CPWL_EditImpl_Select { |