diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-18 06:36:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-18 06:36:51 -0700 |
commit | c1df5d4375027aa9d0b88f456f95177c016e8cad (patch) | |
tree | a06026f0df134604b4cc8082b15a1875ddcc00a0 /xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp | |
parent | e8a80664a888526ca4f0d08b4e6b290eb0aa0d76 (diff) | |
download | pdfium-c1df5d4375027aa9d0b88f456f95177c016e8cad.tar.xz |
Pass element hash and name into CXFA_Object constructor.
Providing the element hash and name in the constructor allows us to remove the
calls to XFA_GetElementByID in the get methods.
Review-Url: https://codereview.chromium.org/2101403002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp index 507aef3c6a..de4b7ae8da 100644 --- a/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp +++ b/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp @@ -51,7 +51,8 @@ void BooleanProperty(CFXJSE_Value* pValue, FX_BOOL& bValue, FX_BOOL bSetting) { CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument) : CXFA_Object(pDocument, XFA_ObjectType::Object, - XFA_Element::EventPseudoModel) {} + XFA_Element::EventPseudoModel, + CFX_WideStringC(L"eventPseudoModel")) {} CScript_EventPseudoModel::~CScript_EventPseudoModel() {} |