summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_saxreader.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-17 09:39:10 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-17 19:30:08 +0000
commite190e7ce1e03ac536ecf825550482b84f7a3dfaa (patch)
tree9d4094535a1144542d172fb469bbd4668269468e /core/fxcrt/xml/cfx_saxreader.h
parent65a2192443ec9a111012fb02693ceaa513c0035f (diff)
downloadpdfium-e190e7ce1e03ac536ecf825550482b84f7a3dfaa.tar.xz
Replace indirect calls with switch in CFX_SaxReader.
Split off from a forthcoming CL to make it smaller. Change-Id: I4409e8c7e87c0954a909e7c1dbeace9d4435b472 Reviewed-on: https://pdfium-review.googlesource.com/4259 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_saxreader.h')
-rw-r--r--core/fxcrt/xml/cfx_saxreader.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fxcrt/xml/cfx_saxreader.h b/core/fxcrt/xml/cfx_saxreader.h
index 6c76016110..45f0d07084 100644
--- a/core/fxcrt/xml/cfx_saxreader.h
+++ b/core/fxcrt/xml/cfx_saxreader.h
@@ -101,8 +101,11 @@ class CFX_SAXReader {
uint32_t dwLen = -1,
uint32_t dwParseMode = 0);
int32_t ContinueParse(IFX_Pause* pPause = nullptr);
- void SkipCurrentNode();
void SetHandler(HandlerIface* pHandler) { m_pHandler = pHandler; }
+
+ private:
+ void ParseInternal();
+ void SkipCurrentNode();
void AppendData(uint8_t ch);
void AppendName(uint8_t ch);
void ParseText();
@@ -120,8 +123,6 @@ class CFX_SAXReader {
void ParseTagClose();
void ParseTagEnd();
void ParseTargetData();
-
- private:
void Reset();
void Push();
void Pop();