diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-04-17 21:55:18 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-17 21:55:18 +0000 |
commit | 384e6fefb42ab5d3d71dd60f7f8d5f5155228804 (patch) | |
tree | 8fe0d065f51f6a459bd2be6adf625c3dd7a716f7 /core/fxcrt/xml/cfx_xmlparser.h | |
parent | 13aa65a71294cac6e4bdaab73ddd6f4b9fcd8676 (diff) | |
download | pdfium-384e6fefb42ab5d3d71dd60f7f8d5f5155228804.tar.xz |
CFX_XML Cleanup
Cleanup formatting and unused variables in the CFX_XML classes.
Change-Id: I1aff6317a3da38a141a071ba69c7893d0f669732
Reviewed-on: https://pdfium-review.googlesource.com/30730
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlparser.h')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlparser.h | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/core/fxcrt/xml/cfx_xmlparser.h b/core/fxcrt/xml/cfx_xmlparser.h index 52d86fb82d..f369453de1 100644 --- a/core/fxcrt/xml/cfx_xmlparser.h +++ b/core/fxcrt/xml/cfx_xmlparser.h @@ -93,20 +93,7 @@ class CFX_XMLParser { }; void ParseTextChar(wchar_t ch); - bool GetStatus() const; - FX_FILESIZE GetCurrentPos() const { return m_ParsedChars + m_Start; } - FX_FILESIZE GetCurrentBinaryPos() const; - int32_t GetCurrentNodeNumber() const { return m_iCurrentNodeNum; } - int32_t GetLastNodeNumber() const { return m_iLastNodeNum; } - - WideString GetTargetName() const { - return m_BlockBuffer.GetTextData(0, m_iTextDataLength); - } - - WideString GetTargetData() const { - return m_BlockBuffer.GetTextData(0, m_iTextDataLength); - } CFX_XMLNode* m_pParent; CFX_XMLNode* m_pChild; @@ -116,21 +103,15 @@ class CFX_XMLParser { RetainPtr<CFX_SeekableStreamProxy> m_pStream; size_t m_iXMLPlaneSize; FX_FILESIZE m_iCurrentPos; - int32_t m_iCurrentNodeNum; - int32_t m_iLastNodeNum; - int32_t m_iParsedBytes; - FX_FILESIZE m_ParsedChars; std::vector<wchar_t> m_Buffer; - size_t m_iBufferChars; bool m_bEOS; FX_FILESIZE m_Start; // Start position in m_Buffer FX_FILESIZE m_End; // End position in m_Buffer - FX_XMLNODE m_CurNode; - std::stack<FX_XMLNODE> m_XMLNodeStack; + FX_XMLNODETYPE m_CurNodeType; + std::stack<FX_XMLNODETYPE> m_XMLNodeTypeStack; CFX_BlockBuffer m_BlockBuffer; - int32_t m_iAllocStep; wchar_t* m_pCurrentBlock; // Pointer into CFX_BlockBuffer - int32_t m_iIndexInBlock; + size_t m_iIndexInBlock; int32_t m_iTextDataLength; FX_XmlSyntaxResult m_syntaxParserResult; FDE_XmlSyntaxState m_syntaxParserState; |