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

Issue 2556873004: Convert GetWidgetRect to return rect. (Closed)

Created:
4 years ago by dsinclair
Modified:
4 years ago
Reviewers:
Tom Sepez, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Convert GetWidgetRect to return rect. Current GetWidgetRect accepts the rect as an out-param. This CL converts the code to return the rect instead. Committed: https://pdfium.googlesource.com/pdfium/+/da911bc12558667555266425d0b7e83296e8cc7d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleanup #

Patch Set 3 : Simplify #

Total comments: 12

Patch Set 4 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -330 lines) Patch
M xfa/fwl/core/cfwl_caret.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_checkbox.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_checkbox.cpp View 1 2 2 chunks +1 line, -25 lines 0 comments Download
M xfa/fwl/core/cfwl_combobox.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_combobox.cpp View 1 2 7 chunks +7 lines, -37 lines 0 comments Download
M xfa/fwl/core/cfwl_comboboxproxy.cpp View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_combolist.cpp View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimeedit.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimepicker.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimepicker.cpp View 1 2 15 chunks +14 lines, -47 lines 0 comments Download
M xfa/fwl/core/cfwl_edit.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_edit.cpp View 1 2 3 8 chunks +29 lines, -40 lines 0 comments Download
M xfa/fwl/core/cfwl_form.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_form.cpp View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
M xfa/fwl/core/cfwl_listbox.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_listbox.cpp View 1 2 2 chunks +2 lines, -19 lines 0 comments Download
M xfa/fwl/core/cfwl_monthcalendar.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/cfwl_monthcalendar.cpp View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M xfa/fwl/core/cfwl_picturebox.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_picturebox.cpp View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M xfa/fwl/core/cfwl_pushbutton.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_pushbutton.cpp View 1 2 1 chunk +0 lines, -16 lines 0 comments Download
M xfa/fwl/core/cfwl_scrollbar.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_scrollbar.cpp View 1 2 1 chunk +0 lines, -19 lines 0 comments Download
M xfa/fwl/core/cfwl_spinbutton.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_spinbutton.cpp View 1 2 2 chunks +0 lines, -13 lines 0 comments Download
M xfa/fwl/core/cfwl_widget.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fwl/core/cfwl_widget.cpp View 1 2 7 chunks +14 lines, -14 lines 0 comments Download
M xfa/fwl/core/cfwl_widgetmgr.cpp View 1 2 8 chunks +8 lines, -16 lines 0 comments Download
M xfa/fxfa/app/xfa_ffbarcode.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 1 2 3 3 chunks +11 lines, -15 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.cpp View 1 2 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
dsinclair
PTAL. This one's a bit tricky in places so make sure my logic is sound ...
4 years ago (2016-12-07 21:09:11 UTC) #2
dsinclair
On 2016/12/07 21:09:11, dsinclair wrote: > PTAL. > > This one's a bit tricky in ...
4 years ago (2016-12-07 21:18:20 UTC) #3
dsinclair
PTAL. There are only about 5 places where GetWidgetRect is called with the bAutoSize parameter ...
4 years ago (2016-12-07 21:44:31 UTC) #6
Tom Sepez
If you're really ambitious someday, it's always struck me that the "calculus of rectangles" gets ...
4 years ago (2016-12-07 21:53:20 UTC) #7
Tom Sepez
lgtm Otherwise OK.
4 years ago (2016-12-07 22:09:37 UTC) #10
dsinclair
https://codereview.chromium.org/2556873004/diff/40001/xfa/fwl/core/cfwl_edit.cpp File xfa/fwl/core/cfwl_edit.cpp (right): https://codereview.chromium.org/2556873004/diff/40001/xfa/fwl/core/cfwl_edit.cpp#newcode113 xfa/fwl/core/cfwl_edit.cpp:113: int32_t iTextLen = m_EdtEngine.GetTextLength(); On 2016/12/07 21:53:20, Tom Sepez ...
4 years ago (2016-12-08 02:35:06 UTC) #11
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/2556873004/60001
4 years ago (2016-12-08 02:36:02 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-08 02:47:04 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/da911bc12558667555266425d0b7e83296e8...

Powered by Google App Engine
This is Rietveld 408576698