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

Issue 2753013003: Bindings: Remove DOMWrapperWorld::fromWorldId() for cleanup (Closed)

Created:
3 years, 9 months ago by nhiroki
Modified:
3 years, 9 months ago
Reviewers:
haraken, peria, Yuki
CC:
chromium-reviews, blink-reviews, kinuko+watch, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bindings: Remove DOMWrapperWorld::fromWorldId() for cleanup This CL removes DOMWrapperWorld::fromWorldId() that looks like a simple getter but actually has a side effect like this: 1) When a given id is for the main world, ensures the main world and returns it. 2) When a given id is for an isolated world, ensures the isolated world and returns it. 3) Otherwise, looks up a given id in the world map and then returns the finding. If the world doesn't exist, returns nullptr. After this CL, mainWorld() is used for 1) and ensureIsolatedWorld() is used for 2). fromWorldId() hasn't been used for 3), so this CL does not introduce an alternative for the case. Also, this CL pushes the main world into the world map for cleanup. Before this CL, the main world is managed separately from other worlds. Managing all worlds in the single map would be simpler. BUG=697622, 697629 Review-Url: https://codereview.chromium.org/2753013003 Cr-Commit-Position: refs/heads/master@{#457739} Committed: https://chromium.googlesource.com/chromium/src/+/1d85fa7d0be347292a5805ec87ca3d2d10a8c57f

Patch Set 1 #

Patch Set 2 : fix builds #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -62 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp View 1 4 chunks +13 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorldTest.cpp View 3 chunks +6 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
nhiroki
PTAL, thanks!
3 years, 9 months ago (2017-03-16 16:02:21 UTC) #16
peria
LGTM Thank you for this clean-up. Looks much better!!
3 years, 9 months ago (2017-03-17 05:22:18 UTC) #17
Yuki
LGTM.
3 years, 9 months ago (2017-03-17 06:36:28 UTC) #18
haraken
LGTM!
3 years, 9 months ago (2017-03-17 10:26:30 UTC) #19
nhiroki
Thank you! :)
3 years, 9 months ago (2017-03-17 10:33:32 UTC) #21
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/2753013003/20001
3 years, 9 months ago (2017-03-17 10:33:54 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/172414) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-17 10:36:23 UTC) #25
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/2753013003/40001
3 years, 9 months ago (2017-03-17 10:55:52 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 12:25:44 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1d85fa7d0be347292a5805ec87ca...

Powered by Google App Engine
This is Rietveld 408576698