summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_resolveprocessor.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-04 18:08:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-04 18:08:58 +0000
commit76e336d26e78f6c6b5cdede6bb4b94ebddf3a2b1 (patch)
tree07bc69b943a29840f947e97e26d3173130e51a91 /fxjs/cfxjse_resolveprocessor.h
parent0ddd5dc7969676f0c661c859512be50e379a2260 (diff)
downloadpdfium-76e336d26e78f6c6b5cdede6bb4b94ebddf3a2b1.tar.xz
Cleanup CFXJSE engine and resolve processor
Change-Id: Ibb7411a7c90f723a19fd5d41552988bc8943e4ea Reviewed-on: https://pdfium-review.googlesource.com/20330 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_resolveprocessor.h')
-rw-r--r--fxjs/cfxjse_resolveprocessor.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/fxjs/cfxjse_resolveprocessor.h b/fxjs/cfxjse_resolveprocessor.h
index 2961d21727..dc6b9cc6b9 100644
--- a/fxjs/cfxjse_resolveprocessor.h
+++ b/fxjs/cfxjse_resolveprocessor.h
@@ -37,7 +37,7 @@ class CFXJSE_ResolveProcessor {
CFXJSE_ResolveProcessor();
~CFXJSE_ResolveProcessor();
- int32_t Resolve(CFXJSE_ResolveNodeData& rnd);
+ bool Resolve(CFXJSE_ResolveNodeData& rnd);
int32_t GetFilter(const WideStringView& wsExpression,
int32_t nStart,
CFXJSE_ResolveNodeData& rnd);
@@ -51,16 +51,15 @@ class CFXJSE_ResolveProcessor {
CXFA_NodeHelper* GetNodeHelper() const { return m_pNodeHelper.get(); }
private:
- int32_t ResolveForAttributeRs(CXFA_Object* curNode,
- CFXJSE_ResolveNodeData& rnd,
- const WideStringView& strAttr);
- int32_t ResolveAnyChild(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolveDollar(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolveExcalmatory(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolveNumberSign(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolveAsterisk(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolveNormal(CFXJSE_ResolveNodeData& rnd);
- int32_t ResolvePopStack(std::vector<int32_t>* stack);
+ bool ResolveForAttributeRs(CXFA_Object* curNode,
+ CFXJSE_ResolveNodeData& rnd,
+ const WideStringView& strAttr);
+ bool ResolveAnyChild(CFXJSE_ResolveNodeData& rnd);
+ bool ResolveDollar(CFXJSE_ResolveNodeData& rnd);
+ bool ResolveExcalmatory(CFXJSE_ResolveNodeData& rnd);
+ bool ResolveNumberSign(CFXJSE_ResolveNodeData& rnd);
+ bool ResolveAsterisk(CFXJSE_ResolveNodeData& rnd);
+ bool ResolveNormal(CFXJSE_ResolveNodeData& rnd);
void SetStylesForChild(uint32_t dwParentStyles, CFXJSE_ResolveNodeData& rnd);
void ConditionArray(int32_t iCurIndex,