7#include "xfa/fxfa/parser/cxfa_script.h"
9#include "fxjs/xfa/cjx_script.h"
10#include "xfa/fxfa/parser/cxfa_document.h"
38 ?
static_cast<CXFA_Script*>(pNode)
45 {XFA_XDPPACKET::kConfig, XFA_XDPPACKET::kTemplate,
46 XFA_XDPPACKET::kForm},
47 XFA_ObjectType::ContentNode,
51 cppgc::MakeGarbageCollected<CJX_Script>(
52 doc->GetHeap()->GetAllocationHandle(),
58 absl::optional<WideString> cData =
59 JSObject()->TryCData(XFA_Attribute::ContentType,
false);
60 if (!cData.has_value())
62 if (cData.value().EqualsASCII(
"application/x-formcalc"))
64 if (cData.value().EqualsASCII(
"application/x-javascript"))
74 return JSObject()->GetContent(
false);
XFA_Element GetElementType() const
static CXFA_Script * FromNode(CXFA_Node *pNode)
XFA_AttributeValue GetRunAt()
WideString GetExpression()