Get CJS_RuntimeFactory out of the CJS_GlobalData management business.
authorTom Sepez <tsepez@chromium.org>
Mon, 14 Sep 2015 21:32:33 +0000 (14:32 -0700)
committerTom Sepez <tsepez@chromium.org>
Mon, 14 Sep 2015 21:32:33 +0000 (14:32 -0700)
commit9a817f092e6800e9338b41acf4ea0416b6ad4467
treec989a1abc1d24c108c7e8d869818368d373b1f00
parentda0938f8671958aba0522a69fc687a7bbb01b435
Get CJS_RuntimeFactory out of the CJS_GlobalData management business.

First part of getting rid of CJS_RuntimeFactory.  The factory design
pattern isn't appropriate here since we only ever make one kind of
object.

CJS_GlobalData is now perfectly capable of managing itself through
internal ref counts. I'm philosophically opposed to keeping ref-counts
outside the object (do you hear me std::shared_ptr, you're bad!)

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1338993005 .
fpdfsdk/include/javascript/IJavaScript.h
fpdfsdk/include/javascript/JS_GlobalData.h
fpdfsdk/src/javascript/JS_GlobalData.cpp
fpdfsdk/src/javascript/JS_Runtime.cpp
fpdfsdk/src/javascript/global.cpp