summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-02-01 22:00:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-01 22:00:33 +0000
commit270283669b1f53edfce8b96a579e973c5de5f205 (patch)
tree527846f4d936e1b878aaaf129ef2cd1223395489 /fxjs
parente99ee7f3e550f7706a3e2d8105ccc55553a9badb (diff)
downloadpdfium-270283669b1f53edfce8b96a579e973c5de5f205.tar.xz
Change internal usages of GetPageIndexDeprecated() to new method.
The new GetDestPageIndex() method does the same thing, but has a consistent form of returning an error (returns -1). Bug: pdfium:938 Change-Id: I31583e1c544d9173a28582b849edd5f73c40e174 Reviewed-on: https://pdfium-review.googlesource.com/25070 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 9af0f07f75..980edd990a 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -1467,7 +1467,7 @@ CJS_Return Document::gotoNamedDest(
scrollPositionArray.push_back(arrayObject->GetFloatAt(i));
}
pRuntime->BeginBlock();
- m_pFormFillEnv->DoGoToAction(dest.GetPageIndexDeprecated(pDocument),
+ m_pFormFillEnv->DoGoToAction(dest.GetDestPageIndex(pDocument),
dest.GetZoomMode(), scrollPositionArray.data(),
scrollPositionArray.size());
pRuntime->EndBlock();