Chromium Code Reviews| Index: xfa/fxfa/app/xfa_ffwidgethandler.cpp |
| diff --git a/xfa/fxfa/app/xfa_ffwidgethandler.cpp b/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
| index aaaf07ad6693ebc911adca1bb41b92014ce08d06..b60b7fc0a220fd6abada2b5fe01123b88b9b14de 100644 |
| --- a/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
| +++ b/xfa/fxfa/app/xfa_ffwidgethandler.cpp |
| @@ -15,7 +15,6 @@ |
| #include "xfa/fxfa/include/xfa_ffdocview.h" |
| #include "xfa/fxfa/include/xfa_ffwidget.h" |
| #include "xfa/fxfa/parser/xfa_document_layout_imp.h" |
| -#include "xfa/fxfa/parser/xfa_parser.h" |
| #include "xfa/fxfa/parser/xfa_parser_imp.h" |
| CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView) |
| @@ -505,8 +504,8 @@ CXFA_Node* CXFA_FFWidgetHandler::CreateTemplateNode(XFA_Element eElement, |
| CXFA_Node* pParent, |
| CXFA_Node* pBefore) const { |
| CXFA_Document* pXFADoc = GetXFADoc(); |
| - CXFA_Node* pNewTemplateNode = pXFADoc->GetParser()->GetFactory()->CreateNode( |
|
dsinclair
2016/07/06 19:19:11
The only time we call SetFactory is to set the Doc
|
| - XFA_XDPPACKET_Template, eElement); |
| + CXFA_Node* pNewTemplateNode = |
| + pXFADoc->CreateNode(XFA_XDPPACKET_Template, eElement); |
| if (pParent) |
| pParent->InsertChild(pNewTemplateNode, pBefore); |
| return pNewTemplateNode; |
| @@ -545,7 +544,7 @@ CXFA_Node* CXFA_FFWidgetHandler::CreateValueNode(XFA_Element eValue, |
| } |
| CXFA_Document* CXFA_FFWidgetHandler::GetObjFactory() const { |
| - return GetXFADoc()->GetParser()->GetFactory(); |
| + return GetXFADoc(); |
| } |
| CXFA_Document* CXFA_FFWidgetHandler::GetXFADoc() const { |