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

Side by Side Diff: xfa/fxfa/parser/cxfa_layoutitem.cpp

Issue 2170473002: Rename xfa_doclayout and xfa_document_layout_imp files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_parser_I
Patch Set: Review fixes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_layoutitem.h ('k') | xfa/fxfa/parser/cxfa_layoutprocessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #include "xfa/fxfa/parser/cxfa_layoutitem.h"
8
9 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h"
10 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h"
11
12 CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, FX_BOOL bIsContentLayoutItem)
13 : m_pFormNode(pNode),
14 m_pParent(nullptr),
15 m_pNextSibling(nullptr),
16 m_pFirstChild(nullptr),
17 m_bIsContentLayoutItem(bIsContentLayoutItem) {}
18
19 CXFA_LayoutItem::~CXFA_LayoutItem() {}
20
21 CXFA_ContainerLayoutItem* CXFA_LayoutItem::AsContainerLayoutItem() {
22 return IsContainerLayoutItem() ? static_cast<CXFA_ContainerLayoutItem*>(this)
23 : nullptr;
24 }
25 CXFA_ContentLayoutItem* CXFA_LayoutItem::AsContentLayoutItem() {
26 return IsContentLayoutItem() ? static_cast<CXFA_ContentLayoutItem*>(this)
27 : nullptr;
28 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_layoutitem.h ('k') | xfa/fxfa/parser/cxfa_layoutprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698