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

Issue 2494883002: Remove IFGAS_FontMgr and clean up (the renamed) CFGAS_FontMgr a little. (Closed)

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

Description

Remove IFGAS_FontMgr and clean up (the renamed) CFGAS_FontMgr a little. IFGAS_FontMgr is an interface only for a class only defined on Windows, plus a class only defined for non-Windows. I'm removing the interface, renaming the class to have the same name in both cases, and cleaning up a bit of unused methods. Committed: https://pdfium.googlesource.com/pdfium/+/8f3eb6051c0465923d6694bd0f0b6dc5bb51cbe3

Patch Set 1 #

Patch Set 2 : Add Windows includes #

Patch Set 3 : Include MakeUnique #

Total comments: 13

Patch Set 4 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -2299 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -3 lines 0 comments Download
M xfa/fde/css/cfde_cssrulecollection.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fde/css/fde_css.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/css/fde_cssstyleselector.h View 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/fde_gedevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/fde_visualset.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/ifde_txtedtengine.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/tto/fde_textout.h View 1 chunk +1 line, -1 line 0 comments Download
A + xfa/fgas/font/cfgas_fontmgr.h View 1 5 chunks +110 lines, -68 lines 0 comments Download
A + xfa/fgas/font/cfgas_fontmgr.cpp View 1 2 3 40 chunks +310 lines, -412 lines 0 comments Download
D xfa/fgas/font/fgas_font.h View 1 chunk +0 lines, -165 lines 0 comments Download
M xfa/fgas/font/fgas_fontutils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/font/fgas_gefont.h View 4 chunks +8 lines, -8 lines 0 comments Download
M xfa/fgas/font/fgas_gefont.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
D xfa/fgas/font/fgas_stdfontmgr.h View 1 chunk +0 lines, -222 lines 0 comments Download
D xfa/fgas/font/fgas_stdfontmgr.cpp View 1 chunk +0 lines, -1384 lines 0 comments Download
M xfa/fgas/layout/fgas_unicode.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_fontmgr.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/xfa_ffapp.h View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/xfa_fontmgr.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (20 generated)
npm
PTAL https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp File xfa/fgas/font/cfgas_fontmgr.cpp (left): https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp#oldcode1223 xfa/fgas/font/cfgas_fontmgr.cpp:1223: #define GetUInt16(p) ((uint16_t)((p)[0] << 8 | (p)[1])) Moved ...
4 years, 1 month ago (2016-11-11 00:20:39 UTC) #13
Tom Sepez
This is much better. Just a few nits mostly pre-existing. https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp File xfa/fgas/font/cfgas_fontmgr.cpp (right): https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp#newcode23 ...
4 years, 1 month ago (2016-11-11 18:43:16 UTC) #16
npm
PTAL https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp File xfa/fgas/font/cfgas_fontmgr.cpp (right): https://codereview.chromium.org/2494883002/diff/40001/xfa/fgas/font/cfgas_fontmgr.cpp#newcode23 xfa/fgas/font/cfgas_fontmgr.cpp:23: int32_t FX_GetSimilarValue(FX_FONTDESCRIPTOR const* pFont, On 2016/11/11 18:43:16, Tom ...
4 years, 1 month ago (2016-11-11 19:24:46 UTC) #19
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-12 01:03:27 UTC) #22
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/2494883002/60001
4 years, 1 month ago (2016-11-12 01:16:02 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 01:16:28 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/8f3eb6051c0465923d6694bd0f0b6dc5bb51...

Powered by Google App Engine
This is Rietveld 408576698