summaryrefslogtreecommitdiff
path: root/fxjs/cjs_runtime.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-29 21:16:42 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-29 21:16:42 +0000
commit2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7 (patch)
treee1b482089168e98337a267294391f3b8011ee9d7 /fxjs/cjs_runtime.cpp
parent007daeb3fbd9ace2c1cbdf85d0fa98ebfa00163c (diff)
downloadpdfium-2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7.tar.xz
Make IJS_Runtime::AsCJSRuntime be XFA-only
Since it is only called from the XFA side. Change-Id: I6e34b39bb0c28db9b367215fae0285acafa22c14 Reviewed-on: https://pdfium-review.googlesource.com/c/44810 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_runtime.cpp')
-rw-r--r--fxjs/cjs_runtime.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_runtime.cpp b/fxjs/cjs_runtime.cpp
index 5364571919..50349158cb 100644
--- a/fxjs/cjs_runtime.cpp
+++ b/fxjs/cjs_runtime.cpp
@@ -127,10 +127,6 @@ void CJS_Runtime::DefineJSObjects() {
CJS_Annot::DefineJSObjects(this);
}
-CJS_Runtime* CJS_Runtime::AsCJSRuntime() {
- return this;
-}
-
IJS_EventContext* CJS_Runtime::NewEventContext() {
m_EventContextArray.push_back(pdfium::MakeUnique<CJS_EventContext>(this));
return m_EventContextArray.back().get();
@@ -187,6 +183,10 @@ WideString ChangeObjName(const WideString& str) {
return sRet;
}
+CJS_Runtime* CJS_Runtime::AsCJSRuntime() {
+ return this;
+}
+
bool CJS_Runtime::GetValueByNameFromGlobalObject(const ByteStringView& utf8Name,
CFXJSE_Value* pValue) {
v8::Isolate::Scope isolate_scope(GetIsolate());