From 2157c4baba28123304affa48ec0a5973151faccf Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 22 Jan 2018 18:44:39 +0000 Subject: Move IsNull and PreNull to CXFA_Node This CL moves the m_bIsNull and m_bPreNull flags from CXFA_WidgetAcc to CXFA_Node. Change-Id: Ibdcdb8611699d6d908ab3c6ed05cbce7bba872ae Reviewed-on: https://pdfium-review.googlesource.com/23310 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_node.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_node.h') diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 4fae752ea0..e99180e0dd 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -299,6 +299,11 @@ class CXFA_Node : public CXFA_Object { CFX_RectF GetUIMargin(); CXFA_Border* GetUIBorder(); + bool IsPreNull() const { return m_bPreNull; } + void SetPreNull(bool val) { m_bPreNull = val; } + bool IsNull() const { return m_bIsNull; } + void SetIsNull(bool val) { m_bIsNull = val; } + protected: CXFA_Node(CXFA_Document* pDoc, XFA_PacketType ePacket, @@ -364,6 +369,8 @@ class CXFA_Node : public CXFA_Object { std::vector> binding_nodes_; CXFA_Node* m_pUiChildNode = nullptr; XFA_Element m_eUIType = XFA_Element::Unknown; + bool m_bIsNull = true; + bool m_bPreNull = true; }; #endif // XFA_FXFA_PARSER_CXFA_NODE_H_ -- cgit v1.2.3