diff options
author | tsepez <tsepez@chromium.org> | 2016-08-08 09:49:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-08 09:49:42 -0700 |
commit | e5aff74a43a2c3355a8b7699a47d0fb7f23b243e (patch) | |
tree | caa9e0f3dffc91bfdf7b753171353b4ae9c5370a /fpdfsdk/javascript/color.h | |
parent | 660de3c494b68a574cb4cdf20359f51ddc260d3c (diff) | |
download | pdfium-e5aff74a43a2c3355a8b7699a47d0fb7f23b243e.tar.xz |
Remove backpointer to runtime from CJS_Array.
This is always available elsewhere, so save the bytes and ease
removal of CJS_Array since it now only contains a single v8 local.
Review-Url: https://codereview.chromium.org/2217253002
Diffstat (limited to 'fpdfsdk/javascript/color.h')
-rw-r--r-- | fpdfsdk/javascript/color.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/color.h b/fpdfsdk/javascript/color.h index 2beddb58fc..5c8c99feb6 100644 --- a/fpdfsdk/javascript/color.h +++ b/fpdfsdk/javascript/color.h @@ -41,9 +41,12 @@ class color : public CJS_EmbedObj { CJS_Value& vRet, CFX_WideString& sError); - public: - static void ConvertPWLColorToArray(const CPWL_Color& color, CJS_Array& array); - static void ConvertArrayToPWLColor(CJS_Array& array, CPWL_Color& color); + static void ConvertPWLColorToArray(CJS_Runtime* pRuntime, + const CPWL_Color& color, + CJS_Array* array); + static void ConvertArrayToPWLColor(CJS_Runtime* pRuntime, + const CJS_Array& array, + CPWL_Color* color); private: CPWL_Color m_crTransparent; |