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

Issue 297513008: Decrease call sites of ScriptState::current() (Closed)

Created:
6 years, 7 months ago by haraken
Modified:
6 years, 7 months ago
Reviewers:
dcarney, adamk
CC:
blink-reviews, kenneth.christiansen, Yoav Weiss, arv+blink, tzik, blink-reviews-css, ed+blinkwatch_opera.com, nhiroki, abarth-chromium, kinuko, dglazkov+blink, dominicc+watchlist_chromium.org, blink-reviews-bindings_chromium.org, Inactive, darktears, apavlov+blink_chromium.org, rwlbuis, watchdog-blink-watchlist_google.com, rune+blink
Visibility:
Public.

Description

Decrease call sites of ScriptState::current() Basically ScriptState::current() should be called only in the binding layer where the current ScriptState is guaranteed to be correct. This CL removes call sites of ScriptState::current() in non-binding layer. BUG=357144 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174599

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -104 lines) Patch
M Source/bindings/scripts/v8_types.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 12 chunks +21 lines, -21 lines 0 comments Download
M Source/bindings/v8/CustomElementConstructorBuilder.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp View 1 3 chunks +11 lines, -11 lines 0 comments Download
M Source/bindings/v8/V8MutationCallback.h View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8MutationCallback.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/bindings/v8/V8NodeFilterCondition.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8NodeFilterCondition.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8MutationObserverCustom.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/FontFace.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/FontFace.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M Source/core/css/FontFace.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/FontFaceSet.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/css/MediaQueryListListener.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/MediaQueryListListener.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.h View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/push_messaging/PushManager.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/push_messaging/PushManager.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/push_messaging/PushManager.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/quota/StorageQuota.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/quota/StorageQuota.cpp View 1 chunk +3 lines, -5 lines 0 comments Download
M Source/modules/quota/StorageQuota.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
haraken
PTAL
6 years, 7 months ago (2014-05-22 12:15:48 UTC) #1
dcarney
lgtm
6 years, 7 months ago (2014-05-22 12:17:42 UTC) #2
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-22 12:19:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/297513008/1
6 years, 7 months ago (2014-05-22 12:20:36 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 12:20:46 UTC) #5
commit-bot: I haz the power
Failed to apply patch for Source/bindings/tests/results/V8TestObject.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-22 12:20:46 UTC) #6
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-22 12:22:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/297513008/20001
6 years, 7 months ago (2014-05-22 12:22:51 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 12:23:07 UTC) #9
commit-bot: I haz the power
Failed to apply patch for Source/bindings/tests/results/V8TestObject.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-22 12:23:07 UTC) #10
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-22 12:25:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/297513008/40001
6 years, 7 months ago (2014-05-22 12:26:37 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 21:52:33 UTC) #13
Message was sent while issue was closed.
Change committed as 174599

Powered by Google App Engine
This is Rietveld 408576698