Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Issue 2208423002: Use smart pointers for class owned pointers under xfa/fde (Closed)

Created:
4 years, 4 months ago by Wei Li
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Use smart pointers for class owned pointers under xfa/fde Use smart pointer to replace raw pointer type for class owned member variables so that memory management will be easier. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/cddf8253692d3beaa97a502c8b60c1d18f81664a

Patch Set 1 #

Patch Set 2 : more fixes #

Total comments: 8

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : one more change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -198 lines) Patch
M xfa/fde/cfde_txtedtbuf.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fde/cfde_txtedtbuf.cpp View 1 2 2 chunks +1 line, -8 lines 0 comments Download
M xfa/fde/cfde_txtedtengine.h View 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fde/cfde_txtedtengine.cpp View 7 chunks +7 lines, -12 lines 0 comments Download
M xfa/fde/cfde_txtedtpage.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M xfa/fde/cfde_txtedtpage.cpp View 1 7 chunks +9 lines, -16 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.h View 1 2 3 5 chunks +10 lines, -10 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.cpp View 1 2 45 chunks +57 lines, -24 lines 0 comments Download
M xfa/fde/css/fde_cssstylesheet.h View 2 chunks +2 lines, -1 line 0 comments Download
M xfa/fde/css/fde_cssstylesheet.cpp View 1 2 8 chunks +11 lines, -12 lines 0 comments Download
M xfa/fde/fde_gedevice.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fde/fde_gedevice.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M xfa/fde/fde_render.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fde/fde_render.cpp View 1 3 chunks +6 lines, -15 lines 0 comments Download
M xfa/fde/tto/fde_textout.h View 1 4 chunks +7 lines, -9 lines 0 comments Download
M xfa/fde/tto/fde_textout.cpp View 1 2 35 chunks +74 lines, -60 lines 0 comments Download
M xfa/fgas/crt/fgas_memory.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M xfa/fgas/crt/fgas_memory.cpp View 1 2 2 chunks +13 lines, -10 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.cpp View 1 2 3 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-04 17:04:02 UTC) #6
Lei Zhang
Looking good. https://codereview.chromium.org/2208423002/diff/20001/xfa/fde/cfde_txtedtbuf.cpp File xfa/fde/cfde_txtedtbuf.cpp (right): https://codereview.chromium.org/2208423002/diff/20001/xfa/fde/cfde_txtedtbuf.cpp#newcode273 xfa/fde/cfde_txtedtbuf.cpp:273: m_pAllocator.reset(IFX_MemoryAllocator::Create(FX_ALLOCTYPE_Fixed, Can we change IFX_MemoryAllocator::Create() to return ...
4 years, 4 months ago (2016-08-04 18:09:16 UTC) #7
Wei Li
ptal, thanks https://codereview.chromium.org/2208423002/diff/20001/xfa/fde/cfde_txtedtbuf.cpp File xfa/fde/cfde_txtedtbuf.cpp (right): https://codereview.chromium.org/2208423002/diff/20001/xfa/fde/cfde_txtedtbuf.cpp#newcode273 xfa/fde/cfde_txtedtbuf.cpp:273: m_pAllocator.reset(IFX_MemoryAllocator::Create(FX_ALLOCTYPE_Fixed, On 2016/08/04 18:09:15, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-04 21:42:25 UTC) #12
Lei Zhang
lgtm https://codereview.chromium.org/2208423002/diff/40001/xfa/fde/css/fde_cssstyleselector.h File xfa/fde/css/fde_cssstyleselector.h (right): https://codereview.chromium.org/2208423002/diff/40001/xfa/fde/css/fde_cssstyleselector.h#newcode92 xfa/fde/css/fde_cssstyleselector.h:92: CFDE_CSSStyleSelector(IFGAS_FontMgr* pFontMgr); explicit
4 years, 4 months ago (2016-08-04 21:53:56 UTC) #13
Wei Li
thanks https://codereview.chromium.org/2208423002/diff/40001/xfa/fde/css/fde_cssstyleselector.h File xfa/fde/css/fde_cssstyleselector.h (right): https://codereview.chromium.org/2208423002/diff/40001/xfa/fde/css/fde_cssstyleselector.h#newcode92 xfa/fde/css/fde_cssstyleselector.h:92: CFDE_CSSStyleSelector(IFGAS_FontMgr* pFontMgr); On 2016/08/04 21:53:56, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-04 22:19:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2208423002/60001
4 years, 4 months ago (2016-08-04 22:19:22 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 22:44:03 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/cddf8253692d3beaa97a502c8b60c1d18f81...

Powered by Google App Engine
This is Rietveld 408576698