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 1441243005: Add AsLayoutItem()/ToLayoutItem() functions. (Closed)

Created:
5 years, 1 month ago by Tom Sepez
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

Add AsLayoutItem()/ToLayoutItem() functions. Also protect the LayoutItem constructor, as !m_bIsContent implies the object can be cast to the container class, so ensure we don't make any of parent class. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/ec441e67745054ece5e3d736b60fffa2f7f8d20c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Restore IsXXX() methods #

Patch Set 3 : Typos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -36 lines) Patch
M xfa/src/fxfa/src/app/xfa_ffpageview.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download
M xfa/src/fxfa/src/common/xfa_doclayout.h View 1 2 3 chunks +31 lines, -5 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_layout_appadapter.h View 1 chunk +8 lines, -8 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp View 1 2 chunks +4 lines, -3 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp View 1 3 chunks +13 lines, -17 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, next part of removing casts. https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp File xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp (left): https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp#oldcode1868 xfa/src/fxfa/src/parser/xfa_layout_pagemgr_new.cpp:1868: CXFA_LayoutItem* pChild = ...
5 years, 1 month ago (2015-11-13 22:14:18 UTC) #2
Lei Zhang
https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/common/xfa_doclayout.h File xfa/src/fxfa/src/common/xfa_doclayout.h (left): https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/common/xfa_doclayout.h#oldcode31 xfa/src/fxfa/src/common/xfa_doclayout.h:31: FX_BOOL IsContentLayoutItem() { return m_bIsContentLayoutItem; } You don't want ...
5 years, 1 month ago (2015-11-13 22:30:32 UTC) #3
Lei Zhang
Otherwise LGTM
5 years, 1 month ago (2015-11-13 22:38:26 UTC) #4
Tom Sepez
https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/common/xfa_doclayout.h File xfa/src/fxfa/src/common/xfa_doclayout.h (left): https://codereview.chromium.org/1441243005/diff/1/xfa/src/fxfa/src/common/xfa_doclayout.h#oldcode31 xfa/src/fxfa/src/common/xfa_doclayout.h:31: FX_BOOL IsContentLayoutItem() { return m_bIsContentLayoutItem; } On 2015/11/13 22:30:31, ...
5 years, 1 month ago (2015-11-13 22:45:50 UTC) #5
Tom Sepez
5 years, 1 month ago (2015-11-13 22:46:58 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
ec441e67745054ece5e3d736b60fffa2f7f8d20c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698