From 0f25f014b3bff4229cb93a1ca850babc5dd382da Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 27 Jul 2017 11:23:48 -0400 Subject: Move CXFA_CSSTagProvider to inner class of CXFA_TextParser The TagProvider is only used in CXFA_TextParser. This CL moves the code to a private inner class and renames to TagProvider. Change-Id: Idd1926250fc59592cc923fde9ec6f8750cb10abf Reviewed-on: https://pdfium-review.googlesource.com/9231 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/cxfa_textparser.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/cxfa_textparser.cpp') diff --git a/xfa/fxfa/cxfa_textparser.cpp b/xfa/fxfa/cxfa_textparser.cpp index 2bc0096962..c74cf50900 100644 --- a/xfa/fxfa/cxfa_textparser.cpp +++ b/xfa/fxfa/cxfa_textparser.cpp @@ -19,7 +19,6 @@ #include "xfa/fde/css/cfde_cssstylesheet.h" #include "xfa/fde/css/fde_css.h" #include "xfa/fgas/font/cfgas_fontmgr.h" -#include "xfa/fxfa/cxfa_csstagprovider.h" #include "xfa/fxfa/cxfa_ffapp.h" #include "xfa/fxfa/cxfa_ffdoc.h" #include "xfa/fxfa/cxfa_fontmgr.h" @@ -269,9 +268,9 @@ bool CXFA_TextParser::TagValidate(const CFX_WideString& wsName) const { FX_HashCode_GetW(wsName.AsStringC(), true)); } -std::unique_ptr CXFA_TextParser::ParseTagInfo( +std::unique_ptr CXFA_TextParser::ParseTagInfo( CFX_XMLNode* pXMLNode) { - auto tagProvider = pdfium::MakeUnique(); + auto tagProvider = pdfium::MakeUnique(); CFX_WideString wsName; if (pXMLNode->GetType() == FX_XMLNODE_Element) { @@ -623,3 +622,8 @@ bool CXFA_TextParser::GetTabstops(CFDE_CSSComputedStyle* pStyle, } return true; } + +CXFA_TextParser::TagProvider::TagProvider() + : m_bTagAvailable(false), m_bContent(false) {} + +CXFA_TextParser::TagProvider::~TagProvider() {} -- cgit v1.2.3