summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/JS_Value.h
diff options
context:
space:
mode:
authorJUN FANG <jun_fang@foxitsoftware.com>2015-04-06 12:39:51 -0700
committerJUN FANG <jun_fang@foxitsoftware.com>2015-04-06 12:39:51 -0700
commitf15807369f2fc3c346cfe06b1d9d847de0feee1d (patch)
tree266821bacd0a2ce316e8ee41dbaf89b471234de6 /fpdfsdk/include/javascript/JS_Value.h
parent6fcecb529007b65596f0ce30efde571f820df56b (diff)
downloadpdfium-f15807369f2fc3c346cfe06b1d9d847de0feee1d.tar.xz
Fix a fatal error due to cloning a global document object
BUG=454595 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1053373002
Diffstat (limited to 'fpdfsdk/include/javascript/JS_Value.h')
-rw-r--r--fpdfsdk/include/javascript/JS_Value.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/fpdfsdk/include/javascript/JS_Value.h b/fpdfsdk/include/javascript/JS_Value.h
index 4962ddcf3d..165898cf33 100644
--- a/fpdfsdk/include/javascript/JS_Value.h
+++ b/fpdfsdk/include/javascript/JS_Value.h
@@ -52,6 +52,7 @@ public:
void operator = (double);
void operator = (float);
void operator = (CJS_Object*);
+ void operator = (CJS_Document*);
void operator = (v8::Handle<v8::Object>);
void operator = (CJS_Array &);
void operator = (CJS_Date &);
@@ -87,37 +88,34 @@ public:
class CJS_PropValue: public CJS_Value
{
public:
- CJS_PropValue(const CJS_Value &);
+ CJS_PropValue(const CJS_Value&);
CJS_PropValue(v8::Isolate* isolate);
~CJS_PropValue();
public:
FX_BOOL IsSetting();
FX_BOOL IsGetting();
- void operator<<(int );
- void operator>>(int &) const;
+ void operator<<(int);
+ void operator>>(int&) const;
void operator<<(bool);
- void operator>>(bool &) const;
- void operator<<(double );
- void operator>>(double &) const;
- void operator<<(CJS_Object *pObj);
- void operator>>(CJS_Object *&ppObj) const;
+ void operator>>(bool&) const;
+ void operator<<(double);
+ void operator>>(double&) const;
+ void operator<<(CJS_Object* pObj);
+ void operator>>(CJS_Object*& ppObj) const;
+ void operator<<(CJS_Document* pJsDoc);
+ void operator>>(CJS_Document*& ppJsDoc) const;
void operator<<(CFX_ByteString);
- void operator>>(CFX_ByteString &) const;
+ void operator>>(CFX_ByteString&) const;
void operator<<(CFX_WideString);
- void operator>>(CFX_WideString &) const;
+ void operator>>(CFX_WideString&) const;
void operator<<(FX_LPCWSTR c_string);
-
void operator<<(JSFXObject);
- void operator>>(JSFXObject &) const;
-
- void operator>>(CJS_Array &array) const;
- void operator<<(CJS_Array &array);
-
- void operator<<(CJS_Date &date);
- void operator>>(CJS_Date &date) const;
-
+ void operator>>(JSFXObject&) const;
+ void operator>>(CJS_Array& array) const;
+ void operator<<(CJS_Array& array);
+ void operator<<(CJS_Date& date);
+ void operator>>(CJS_Date& date) const;
operator v8::Handle<v8::Value>() const;
-
void StartSetting();
void StartGetting();
private: