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

Issue 1577503002: Merge to XFA: Switch most min/max macros to std::min/max. (Closed)

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

Description

Merge to XFA: Switch most min/max macros to std::min/max. Fix lint errors along the way. R=tsepez@chromium.org TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1567343002 . (cherry picked from commit 9adfbb0920a258e916003b1ee9515e97879db82a) Committed: https://pdfium.googlesource.com/pdfium/+/375a86403b7fa8d17d7b142c270e2d8e33bb924f

Patch Set 1 #

Patch Set 2 : xfa #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -347 lines) Patch
M core/include/fxcrt/fx_basic.h View 2 chunks +3 lines, -1 line 0 comments Download
M core/include/fxcrt/fx_system.h View 1 chunk +0 lines, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp View 1 2 3 8 chunks +35 lines, -25 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M core/src/fpdfdoc/doc_formcontrol.cpp View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M core/src/fpdfdoc/doc_utils.cpp View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M core/src/fpdfdoc/doc_vt.cpp View 13 chunks +23 lines, -21 lines 0 comments Download
M core/src/fpdfdoc/pdf_vt.h View 6 chunks +13 lines, -20 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 6 chunks +17 lines, -19 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_png.cpp View 1 2 chunks +7 lines, -5 lines 0 comments Download
M core/src/fxcodec/lbmp/fx_bmp.cpp View 1 2 4 chunks +18 lines, -5 lines 0 comments Download
M core/src/fxcrt/extension.h View 5 chunks +23 lines, -38 lines 0 comments Download
M core/src/fxcrt/fx_basic_buffer.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcrt/fx_extension.cpp View 1 chunk +53 lines, -0 lines 0 comments Download
M core/src/fxcrt/xml_int.h View 3 chunks +6 lines, -3 lines 0 comments Download
M core/src/fxge/agg/src/fx_agg_driver.cpp View 6 chunks +17 lines, -17 lines 0 comments Download
M core/src/fxge/android/fpf_skiafont.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M fpdfsdk/include/fxedit/fxet_edit.h View 7 chunks +7 lines, -28 lines 0 comments Download
M fpdfsdk/src/fpdf_flatten.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_baseannot.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M fpdfsdk/src/fxedit/fxet_edit.cpp View 3 chunks +4 lines, -3 lines 0 comments Download
M fpdfsdk/src/javascript/PublicMethods.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Utils.cpp View 4 chunks +9 lines, -6 lines 0 comments Download
M xfa/src/fdp/src/css/fde_csscache.cpp View 1 2 chunks +5 lines, -2 lines 0 comments Download
M xfa/src/fdp/src/fde/fde_gedevice.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fdp/src/tto/fde_textout.cpp View 1 4 chunks +6 lines, -4 lines 0 comments Download
M xfa/src/fdp/src/xml/fde_xml.cpp View 1 3 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fee/src/fee/fde_txtedtbuf.cpp View 1 5 chunks +6 lines, -4 lines 0 comments Download
M xfa/src/fee/src/fee/fde_txtedtengine.cpp View 1 3 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fee/src/fee/fde_txtedtpage.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fgas/src/crt/fx_memory.cpp View 1 3 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fgas/src/crt/fx_stream.h View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/src/fgas/src/crt/fx_stream.cpp View 1 19 chunks +21 lines, -19 lines 0 comments Download
M xfa/src/fgas/src/crt/fx_system.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fgas/src/crt/fx_utils.cpp View 1 3 chunks +5 lines, -2 lines 0 comments Download
M xfa/src/fgas/src/layout/fx_rtfbreak.cpp View 1 5 chunks +7 lines, -5 lines 0 comments Download
M xfa/src/fgas/src/layout/fx_textbreak.cpp View 1 4 chunks +6 lines, -4 lines 0 comments Download
M xfa/src/fgas/src/localization/fx_locale.cpp View 1 5 chunks +9 lines, -7 lines 0 comments Download
M xfa/src/fgas/src/xml/fx_sax_imp.h View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/src/fgas/src/xml/fx_sax_imp.cpp View 1 3 chunks +11 lines, -2 lines 0 comments Download
M xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fwl/src/basewidget/fwl_editimp.cpp View 1 5 chunks +9 lines, -7 lines 0 comments Download
M xfa/src/fwl/src/core/fwl_widgetimp.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fwl/src/theme/widgettp.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxbarcode/BC_TwoDimWriter.cpp View 1 2 3 chunks +19 lines, -15 lines 0 comments Download
M xfa/src/fxbarcode/common/BC_CommonByteArray.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp View 1 3 chunks +9 lines, -7 lines 0 comments Download
M xfa/src/fxbarcode/oned/BC_OneDReader.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxbarcode/oned/BC_OneDimWriter.cpp View 1 3 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fxbarcode/oned/BC_OnedCodaBarReader.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxbarcode/oned/BC_OnedCode128Reader.cpp View 1 3 chunks +5 lines, -3 lines 0 comments Download
M xfa/src/fxbarcode/oned/BC_OnedCode39Reader.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxbarcode/qrcode/BC_QRCoderEncoder.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/src/fxbarcode/qrcode/BC_QRDetector.cpp View 1 2 chunks +6 lines, -4 lines 0 comments Download
M xfa/src/fxfa/src/app/xfa_ffapp.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxfa/src/app/xfa_ffwidget.cpp View 1 4 chunks +5 lines, -3 lines 0 comments Download
M xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp View 1 7 chunks +13 lines, -11 lines 0 comments Download
M xfa/src/fxfa/src/app/xfa_fontmgr.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M xfa/src/fxfa/src/app/xfa_textlayout.cpp View 1 6 chunks +8 lines, -6 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Lei Zhang
See patch set 2.
4 years, 11 months ago (2016-01-09 00:09:52 UTC) #1
Tom Sepez
I only reviewed the xfa/ files. https://codereview.chromium.org/1577503002/diff/20001/xfa/src/fxbarcode/BC_TwoDimWriter.cpp File xfa/src/fxbarcode/BC_TwoDimWriter.cpp (right): https://codereview.chromium.org/1577503002/diff/20001/xfa/src/fxbarcode/BC_TwoDimWriter.cpp#newcode103 xfa/src/fxbarcode/BC_TwoDimWriter.cpp:103: std::max(static_cast<int32_t>(tempWidth * moduleHSize), ...
4 years, 11 months ago (2016-01-09 00:35:53 UTC) #2
Lei Zhang
On 2016/01/09 00:35:53, Tom Sepez wrote: > I only reviewed the xfa/ files. There's xfa-only ...
4 years, 11 months ago (2016-01-09 00:43:00 UTC) #3
Tom Sepez
On 2016/01/09 00:43:00, Lei Zhang wrote: > On 2016/01/09 00:35:53, Tom Sepez wrote: > > ...
4 years, 11 months ago (2016-01-09 00:44:27 UTC) #4
Tom Sepez
Otherwise looks good. Let me know what you want to do about the one block ...
4 years, 11 months ago (2016-01-09 00:48:12 UTC) #5
Lei Zhang
Does patch set 3 look better?
4 years, 11 months ago (2016-01-09 01:00:15 UTC) #6
Tom Sepez
lgtm
4 years, 11 months ago (2016-01-11 17:23:56 UTC) #7
Lei Zhang
4 years, 11 months ago (2016-01-11 19:59:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
375a86403b7fa8d17d7b142c270e2d8e33bb924f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698