1 // Copyright 2017 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 "fxjs/xfa/cjx_textnode.h"
8 
9 #include "fxjs/xfa/cfxjse_value.h"
10 #include "xfa/fxfa/parser/cxfa_node.h"
11 
CJX_TextNode(CXFA_Node * node)12 CJX_TextNode::CJX_TextNode(CXFA_Node* node) : CJX_Node(node) {}
13 
~CJX_TextNode()14 CJX_TextNode::~CJX_TextNode() {}
15 
DynamicTypeIs(TypeTag eType) const16 bool CJX_TextNode::DynamicTypeIs(TypeTag eType) const {
17   return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
18 }
19 
defaultValue(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute attr)20 void CJX_TextNode::defaultValue(CFXJSE_Value* pValue,
21                                 bool bSetting,
22                                 XFA_Attribute attr) {
23   ScriptSomDefaultValue(pValue, bSetting, attr);
24 }
25 
value(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute attr)26 void CJX_TextNode::value(CFXJSE_Value* pValue,
27                          bool bSetting,
28                          XFA_Attribute attr) {
29   ScriptSomDefaultValue(pValue, bSetting, attr);
30 }
31