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

Issue 1980293004: Pass objects instead of strings for undo/redo records. (Closed)

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

Description

Pass objects instead of strings for undo/redo records. Currently the Undo/Redo records are serialized as byte strings and stored into a CFX_ByteStringArray. They are deserialized when used. This CL removes the serialization and stores the objects in a deque of unique pointers. Committed: https://pdfium.googlesource.com/pdfium/+/be9b8947d0090e20116822fe7caf5e7973d6b20a

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -419 lines) Patch
M core/fxcrt/fx_basic_buffer.cpp View 1 chunk +0 lines, -127 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 chunk +0 lines, -65 lines 0 comments Download
M xfa/fee/fde_txtedtengine.h View 4 chunks +11 lines, -23 lines 0 comments Download
M xfa/fee/fde_txtedtengine.cpp View 11 chunks +32 lines, -133 lines 0 comments Download
M xfa/fwl/basewidget/fwl_comboboximp.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_comboboximp.cpp View 1 2 2 chunks +11 lines, -12 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.h View 8 chunks +14 lines, -11 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 1 2 6 chunks +25 lines, -26 lines 3 comments Download
M xfa/fwl/basewidget/ifwl_combobox.h View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/ifwl_edit.h View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_combobox.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_combobox.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_edit.h View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_edit.cpp View 1 2 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
dsinclair
PTAL.
4 years, 7 months ago (2016-05-17 19:21:24 UTC) #2
Tom Sepez
On 2016/05/17 19:21:24, dsinclair wrote: > PTAL. Sure we don't persist these when saving a ...
4 years, 7 months ago (2016-05-17 20:11:01 UTC) #3
dsinclair
On 2016/05/17 20:11:01, Tom Sepez wrote: > On 2016/05/17 19:21:24, dsinclair wrote: > > PTAL. ...
4 years, 7 months ago (2016-05-17 20:16:05 UTC) #4
Tom Sepez
https://codereview.chromium.org/1980293004/diff/20001/xfa/fwl/basewidget/fwl_comboboximp.cpp File xfa/fwl/basewidget/fwl_comboboximp.cpp (right): https://codereview.chromium.org/1980293004/diff/20001/xfa/fwl/basewidget/fwl_comboboximp.cpp#newcode793 xfa/fwl/basewidget/fwl_comboboximp.cpp:793: if (!m_pEdit) nit: or just return m_pEdit && m_pEdit->Redo(pRecord); ...
4 years, 7 months ago (2016-05-17 20:37:59 UTC) #5
dsinclair
https://codereview.chromium.org/1980293004/diff/20001/xfa/fwl/basewidget/fwl_comboboximp.cpp File xfa/fwl/basewidget/fwl_comboboximp.cpp (right): https://codereview.chromium.org/1980293004/diff/20001/xfa/fwl/basewidget/fwl_comboboximp.cpp#newcode793 xfa/fwl/basewidget/fwl_comboboximp.cpp:793: if (!m_pEdit) On 2016/05/17 20:37:59, Tom Sepez wrote: > ...
4 years, 7 months ago (2016-05-17 20:50:03 UTC) #6
Tom Sepez
lgtm https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_editimp.cpp File xfa/fwl/basewidget/fwl_editimp.cpp (right): https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_editimp.cpp#newcode1475 xfa/fwl/basewidget/fwl_editimp.cpp:1475: m_DoRecords.erase(m_DoRecords.begin() + m_iCurRecord + 1, Maybe m_iCurRecord should ...
4 years, 7 months ago (2016-05-17 21:24:38 UTC) #7
dsinclair
https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_editimp.cpp File xfa/fwl/basewidget/fwl_editimp.cpp (right): https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_editimp.cpp#newcode1475 xfa/fwl/basewidget/fwl_editimp.cpp:1475: m_DoRecords.erase(m_DoRecords.begin() + m_iCurRecord + 1, On 2016/05/17 21:24:38, Tom ...
4 years, 7 months ago (2016-05-18 13:09:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980293004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980293004/40001
4 years, 7 months ago (2016-05-18 13:09:16 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://pdfium.googlesource.com/pdfium/+/be9b8947d0090e20116822fe7caf5e7973d6b20a
4 years, 7 months ago (2016-05-18 13:09:39 UTC) #12
Lei Zhang
4 years, 7 months ago (2016-05-19 23:46:48 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_...
File xfa/fwl/basewidget/fwl_editimp.cpp (right):

https://codereview.chromium.org/1980293004/diff/40001/xfa/fwl/basewidget/fwl_...
xfa/fwl/basewidget/fwl_editimp.cpp:785: return m_iCurRecord < m_DoRecords.size()
- 1;
When I tried to roll DEPS, this failed on the Chromium Windows trybots with:

FAILED: obj/third_party/pdfium/xfa/fwl_editimp.obj 
ninja -t msvc -e environment.x86 -- E:\b\build\slave\cache\cipd\goma/gomacc.exe
"E:\b\depot_tools\win_toolchain\vs_files\95ddda401ec5678f15eeed01d2bee08fcbc5ee97\VC\bin\amd64_x86/cl.exe"
/nologo /showIncludes /FC @obj/third_party/pdfium/xfa/fwl_editimp.obj.rsp /c
../../third_party/pdfium/xfa/fwl/basewidget/fwl_editimp.cpp
/Foobj/third_party/pdfium/xfa/fwl_editimp.obj
/Fd"obj/third_party/pdfium/xfa_cc.pdb"
e:\b\build\slave\win_gn\build\src\third_party\pdfium\xfa\fwl\basewidget\fwl_editimp.cpp(782):
error C2220: warning treated as error - no 'object' file generated
e:\b\build\slave\win_gn\build\src\third_party\pdfium\xfa\fwl\basewidget\fwl_editimp.cpp(782):
warning C4018: '<': signed/unsigned mismatch

https://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng...

Powered by Google App Engine
This is Rietveld 408576698