7#include "fxjs/xfa/cjx_draw.h"
10#include "fxjs/xfa/cfxjse_value.h"
11#include "third_party/base/check.h"
12#include "v8/include/v8-primitive.h"
13#include "v8/include/v8-value.h"
14#include "xfa/fxfa/parser/cxfa_draw.h"
24void CJX_Draw::rawValue(
v8::Isolate* pIsolate,
25 v8::Local<v8::Value>* pValue,
28 defaultValue(pIsolate, pValue, bSetting, eAttribute);
31void CJX_Draw::defaultValue(
v8::Isolate* pIsolate,
32 v8::Local<v8::Value>* pValue,
36 ByteString content =
GetContent(
true).ToUTF8();
37 *pValue = content.IsEmpty()
38 ? fxv8::NewNullHelper(pIsolate).As<v8::Value>()
39 : fxv8::NewStringHelper(pIsolate, content.AsStringView())
47 DCHECK(GetXFANode()->IsWidgetReady());
51 WideString wsNewValue = fxv8::ReentrantToWideStringHelper(pIsolate, *pValue);
52 SetContent(wsNewValue, wsNewValue,
true,
true,
true);
bool DynamicTypeIs(TypeTag eType) const override
bool DynamicTypeIs(TypeTag eType) const override
WideString GetContent(bool bScriptModify) const
CXFA_Node * GetXFANode() const
void SetContent(const WideString &wsContent, const WideString &wsXMLValue, bool bNotify, bool bScriptModify, bool bSyncData)
bool IsString(v8::Local< v8::Value > value)