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

Issue 1682983002: Make fx_bidi sane. (Closed)

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

Description

Make fx_bidi sane. Replace array of heterogenous ints with array of struct. Create a class for traversing a string. Flip array when R2L and process with forward iterator always. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/5a5f1f1c905f2c352d2fbde143456124dd2c0fbf

Patch Set 1 #

Patch Set 2 : Tests. #

Patch Set 3 : braces #

Patch Set 4 : Even smaller #

Patch Set 5 : Don't let indices go negative. #

Patch Set 6 : Rebase #

Patch Set 7 : Use segments in private vars. #

Patch Set 8 : Range-based for loop. #

Patch Set 9 : Stray class decl. #

Total comments: 16

Patch Set 10 : Address issues in c#5. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -281 lines) Patch
M core/include/fxcrt/fx_bidi.h View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -20 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +47 lines, -161 lines 0 comments Download
M core/src/fpdftext/text_int.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fxcrt/fx_bidi.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +49 lines, -34 lines 0 comments Download
M core/src/fxcrt/fx_bidi_unittest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +293 lines, -64 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Tom Sepez
Lei, pls review. A lot of the logic seems to be for pointless combination of ...
4 years, 10 months ago (2016-02-11 18:02:15 UTC) #3
Tom Sepez
https://codereview.chromium.org/1682983002/diff/160001/core/src/fxcrt/fx_bidi.cpp File core/src/fxcrt/fx_bidi.cpp (right): https://codereview.chromium.org/1682983002/diff/160001/core/src/fxcrt/fx_bidi.cpp#newcode77 core/src/fxcrt/fx_bidi.cpp:77: std::reverse(m_Order.begin(), m_Order.end()); Note: this is the key idea. Rather ...
4 years, 10 months ago (2016-02-11 18:25:58 UTC) #4
Lei Zhang
https://codereview.chromium.org/1682983002/diff/160001/core/include/fxcrt/fx_bidi.h File core/include/fxcrt/fx_bidi.h (right): https://codereview.chromium.org/1682983002/diff/160001/core/include/fxcrt/fx_bidi.h#newcode11 core/include/fxcrt/fx_bidi.h:11: #include <memory> memory before vector. https://codereview.chromium.org/1682983002/diff/160001/core/include/fxcrt/fx_bidi.h#newcode27 core/include/fxcrt/fx_bidi.h:27: : m_CurrentSegment({0, ...
4 years, 10 months ago (2016-02-12 00:46:43 UTC) #5
Tom Sepez
https://codereview.chromium.org/1682983002/diff/160001/core/include/fxcrt/fx_bidi.h File core/include/fxcrt/fx_bidi.h (right): https://codereview.chromium.org/1682983002/diff/160001/core/include/fxcrt/fx_bidi.h#newcode11 core/include/fxcrt/fx_bidi.h:11: #include <memory> On 2016/02/12 00:46:42, Lei Zhang wrote: > ...
4 years, 10 months ago (2016-02-12 17:54:33 UTC) #6
Lei Zhang
lgtm
4 years, 10 months ago (2016-02-12 18:10:58 UTC) #7
Tom Sepez
4 years, 10 months ago (2016-02-12 18:29:26 UTC) #9
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as
5a5f1f1c905f2c352d2fbde143456124dd2c0fbf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698