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

Issue 1745683002: Fixup FX_RECT and FX_SMALL_RECT classes. (Closed)

Created:
4 years, 10 months ago by Tom Sepez
Modified:
4 years, 9 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
Visibility:
Public.

Description

Fixup FX_RECT and FX_SMALL_RECT classes. Put these first, so later on more complicated classes can have constructors that take these as arguments. Add better constructors, and call appropriately. Also don't be afraid to return these from methods since RVO. R=dsinclair@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/d5e7b355b8c4c22ff770547797cbc536bdc95d5b

Patch Set 1 : Move code around without changing it. #

Patch Set 2 : Make actual changes. #

Total comments: 21

Patch Set 3 : Rebase, Dan's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -313 lines) Patch
M core/include/fpdfapi/fpdf_resource.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M core/include/fxcrt/fx_coordinates.h View 1 2 2 chunks +187 lines, -191 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font.cpp View 1 2 6 chunks +27 lines, -47 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 2 5 chunks +22 lines, -34 lines 2 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 chunks +8 lines, -10 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 1 2 chunks +13 lines, -17 lines 0 comments Download
M fpdfsdk/src/fsdk_annothandler.cpp View 1 2 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Tom Sepez
Dan, for review in Lei's absence.
4 years, 10 months ago (2016-02-27 00:30:05 UTC) #4
dsinclair
I realize now most of this is moved code, so a bunch of my comments ...
4 years, 10 months ago (2016-02-27 03:11:44 UTC) #5
Tom Sepez
Hi Dan, quick sanity check between #3 and #2, if you would. Thanks. https://codereview.chromium.org/1745683002/diff/20001/core/include/fxcrt/fx_coordinates.h File ...
4 years, 9 months ago (2016-02-29 18:42:08 UTC) #6
dsinclair
Still lgtm. https://codereview.chromium.org/1745683002/diff/40001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1745683002/diff/40001/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode72 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:72: {"UniGB-UCS2", CIDSET_GB1, CIDCODING_UCS2, CPDF_CMap::TwoBytes, 0, {}}, Not ...
4 years, 9 months ago (2016-02-29 19:00:16 UTC) #7
Tom Sepez
Committed patchset #3 (id:40001) manually as d5e7b355b8c4c22ff770547797cbc536bdc95d5b (presubmit successful).
4 years, 9 months ago (2016-02-29 19:24:33 UTC) #9
Tom Sepez
4 years, 9 months ago (2016-02-29 19:25:49 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1745683002/diff/40001/core/src/fpdfapi/fpdf_f...
File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right):

https://codereview.chromium.org/1745683002/diff/40001/core/src/fpdfapi/fpdf_f...
core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:72: {"UniGB-UCS2", CIDSET_GB1,
CIDCODING_UCS2, CPDF_CMap::TwoBytes, 0, {}},
On 2016/02/29 19:00:16, dsinclair wrote:
> Not sure if we made the same change, or something weird happened I think
you'll
> conflict on update.
Ah, sorry, should have rebased and uploaded and then made changes;  you're
seeing the effect of the rebase.

Powered by Google App Engine
This is Rietveld 408576698