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

Issue 1847333004: Remove _FXBSTR* and calls to FX_BSTRC. (Closed)

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

Description

Remove _FXBSTR* and calls to FX_BSTRC. This CL removes _FXBSTR and changes FPDF_AbbrPair to hold two FX_CHAR pointers. The two remaining uses of FX_BSTRC() were in unused FDE_CSS defines which have been removed. BUG=pdfium:151 Committed: https://pdfium.googlesource.com/pdfium/+/d80e0a7f9fb36503e872e022af65899d55080790

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -43 lines) Patch
M BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 3 4 2 chunks +31 lines, -41 lines 2 comments Download
A core/fpdfapi/fpdf_page/fpdf_page_parser_unittest.cpp View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fde/css/fde_css.h View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
dsinclair
PTAL.
4 years, 8 months ago (2016-04-01 14:07:29 UTC) #2
Tom Sepez
https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode57 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:57: {MakeSimpleString("BitsPerComponent"), MakeSimpleString("BPC")}, This theoretically generates static initializers since technically ...
4 years, 8 months ago (2016-04-01 16:43:03 UTC) #3
dsinclair
https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode57 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:57: {MakeSimpleString("BitsPerComponent"), MakeSimpleString("BPC")}, On 2016/04/01 16:43:03, Tom Sepez wrote: > ...
4 years, 8 months ago (2016-04-01 20:18:34 UTC) #4
Tom Sepez
> Ah, I failed to understand the comment in pdfium:151. I thought the compiler > ...
4 years, 8 months ago (2016-04-01 20:44:37 UTC) #5
Tom Sepez
https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode51 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:51: struct PDF_AbbrPairs { nit: singular (e.g AbbrPair). https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode52 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:52: ...
4 years, 8 months ago (2016-04-01 21:45:54 UTC) #6
dsinclair
https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/1/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode51 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:51: struct PDF_AbbrPairs { On 2016/04/01 21:45:53, Tom Sepez wrote: ...
4 years, 8 months ago (2016-04-02 00:13:33 UTC) #7
Tom Sepez
CL description needs updating https://codereview.chromium.org/1847333004/diff/20001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/20001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode83 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:83: CFX_ByteStringC PDF_FindFullName(const PDF_AbbrPair* table, On ...
4 years, 8 months ago (2016-04-02 18:11:54 UTC) #8
dsinclair
https://codereview.chromium.org/1847333004/diff/20001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/20001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode83 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:83: CFX_ByteStringC PDF_FindFullName(const PDF_AbbrPair* table, On 2016/04/02 18:11:54, Tom Sepez ...
4 years, 8 months ago (2016-04-04 15:21:14 UTC) #10
Tom Sepez
lgtm https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode45 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:45: const FX_CHAR* full_name; If you'd like, you might ...
4 years, 8 months ago (2016-04-04 15:57:30 UTC) #11
Tom Sepez
On 2016/04/04 15:57:30, Tom Sepez wrote: > lgtm > > https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp > File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): ...
4 years, 8 months ago (2016-04-04 16:02:38 UTC) #12
Tom Sepez
Ha! https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode89 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:89: return it != table + count ? CFX_ByteString(it->full_name) ...
4 years, 8 months ago (2016-04-04 16:11:37 UTC) #13
dsinclair
https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/60001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode45 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:45: const FX_CHAR* full_name; On 2016/04/04 15:57:30, Tom Sepez wrote: ...
4 years, 8 months ago (2016-04-04 16:26:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847333004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847333004/80001
4 years, 8 months ago (2016-04-04 16:27:28 UTC) #17
Tom Sepez
++LGTM https://codereview.chromium.org/1847333004/diff/80001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp File core/fpdfapi/fpdf_page/fpdf_page_parser.cpp (right): https://codereview.chromium.org/1847333004/diff/80001/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp#newcode50 core/fpdfapi/fpdf_page/fpdf_page_parser.cpp:50: {"BPC", "BitsPerComponent"}, {"CS", "ColorSpace"}, {"D", "Decode"}, That's so ...
4 years, 8 months ago (2016-04-04 16:29:26 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 16:39:01 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/d80e0a7f9fb36503e872e022af65899d5508...

Powered by Google App Engine
This is Rietveld 408576698