Do not initialize |v8::Context| on |ScriptController::updateDocument|.
Initializing |v8::Context| is a heavy operation, and should be avoided if necessary. This is meant to be delayed until first time |toV8Context| is called, but |ScriptController::updateDocument| was forcing creation. This patch fixes the if branch so that it would not create a |v8::Context| if it does not exist. BUG=368548, 368555 Review URL: https://codereview.chromium.org/263583002 git-svn-id: svn://svn.chromium.org/blink/trunk@173044 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment