Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 2794023002: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 1) (Closed)

Created:
3 years, 8 months ago by adithyas
Modified:
3 years, 8 months ago
Reviewers:
haraken, jbroman, Yuki
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, haraken, kinuko+watch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ScriptState::forWorld/ScriptState::forMainWorld (Part 1) To move ScriptState to platform/bindings, ScriptState::forWorld/ScriptState::forMainWorld need to be moved out of ScriptState.h/cpp (they depend on Frame). This CL creates two new functions in V8Binding, and replaces uses of ScriptState::forWorld with toScriptState. BUG=682322 Review-Url: https://codereview.chromium.org/2794023002 Cr-Commit-Position: refs/heads/master@{#461796} Committed: https://chromium.googlesource.com/chromium/src/+/cd81626138da7e7021b81a1415a06088302e958f

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move functions to V8Binding #

Patch Set 3 : Some fixes #

Total comments: 4

Patch Set 4 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -22 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptState.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp View 1 2 3 1 chunk +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 1 2 3 chunks +26 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
adithyas
This CL only adds the new functions to a separate file (without removing the old ...
3 years, 8 months ago (2017-04-03 19:09:04 UTC) #6
jbroman
https://codereview.chromium.org/2794023002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h File third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h (right): https://codereview.chromium.org/2794023002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h#newcode8 third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h:8: #include "bindings/core/v8/DOMWrapperWorld.h" This can be forward-declared as well. https://codereview.chromium.org/2794023002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h#newcode21 ...
3 years, 8 months ago (2017-04-03 19:23:43 UTC) #7
adithyas
https://codereview.chromium.org/2794023002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h File third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h (right): https://codereview.chromium.org/2794023002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h#newcode21 third_party/WebKit/Source/bindings/core/v8/ScriptStateStore.h:21: static ScriptState* forWorld(LocalFrame*, DOMWrapperWorld&); On 2017/04/03 at 19:23:42, jbroman ...
3 years, 8 months ago (2017-04-03 21:42:00 UTC) #9
jbroman
(cc haraken in case he has any objections) This lgtm. It's analogous to how we ...
3 years, 8 months ago (2017-04-04 01:16:28 UTC) #10
haraken
LGTM https://codereview.chromium.org/2794023002/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Binding.h File third_party/WebKit/Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/2794023002/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Binding.h#newcode1010 third_party/WebKit/Source/bindings/core/v8/V8Binding.h:1010: CORE_EXPORT ScriptState* toScriptStateForMainWorld(LocalFrame*); Nit: I'd add: // Do ...
3 years, 8 months ago (2017-04-04 02:26:45 UTC) #12
adithyas
https://codereview.chromium.org/2794023002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptState.h File third_party/WebKit/Source/bindings/core/v8/ScriptState.h (right): https://codereview.chromium.org/2794023002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptState.h#newcode142 third_party/WebKit/Source/bindings/core/v8/ScriptState.h:142: // DEPRECATED: Use toScriptStateForMainWorld. On 2017/04/04 at 01:16:28, jbroman ...
3 years, 8 months ago (2017-04-04 14:22:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2794023002/2
3 years, 8 months ago (2017-04-04 14:22:58 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/421309)
3 years, 8 months ago (2017-04-04 15:38:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2794023002/2
3 years, 8 months ago (2017-04-04 18:35:01 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:2) as https://chromium.googlesource.com/chromium/src/+/cd81626138da7e7021b81a1415a06088302e958f
3 years, 8 months ago (2017-04-04 19:11:10 UTC) #23
Yuki
3 years, 8 months ago (2017-04-05 08:06:19 UTC) #25
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698