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

Issue 2444363002: binding: Replaces DictionaryHelper::get(ScriptValue) with get(Nullable<T>). (Closed)

Created:
4 years, 1 month ago by Yuki
Modified:
4 years, 1 month ago
Reviewers:
haraken, peria, bashi
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, blink-reviews-bindings_chromium.org, darktears, blink-reviews, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Replaces DictionaryHelper::get(ScriptValue) with get(Nullable<T>). Replaces DictionaryHelper::get(dict, key, ScriptValue&) with get(dict, key, Nullable<T>&). The only client of get(ScriptValue&) is EffectInput.cpp and it expects "double?" in IDL. So, Nullable<T> should be better. The motivation of this CL is to remove an use of ScriptState::current() in order to make Blink use the correct context. Also we'd like to reduce usage of ScriptValue that saves a ScriptState inside. BUG=618672 Committed: https://crrev.com/05d7c9d9594f75024b20a53cfbb1d6a8f5deb938 Cr-Commit-Position: refs/heads/master@{#431876}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Synced. #

Patch Set 4 : Synced. #

Patch Set 5 : Applied git-cl-format. #

Patch Set 6 : Applied git-cl-format. #

Patch Set 7 : Applied git-cl-format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -41 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/Dictionary.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h View 5 2 chunks +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 1 2 3 4 5 6 5 chunks +20 lines, -29 lines 0 comments Download

Messages

Total messages: 47 (36 generated)
Yuki
Could you guys review this CL?
4 years, 1 month ago (2016-10-26 09:46:19 UTC) #8
haraken
LGTM
4 years, 1 month ago (2016-10-26 09:48:07 UTC) #11
peria
https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h File third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h (right): https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h#newcode61 third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h:61: if (DictionaryHelper::get(dictionary, key, innerValue)) { Shouldn't |innerValue| in the ...
4 years, 1 month ago (2016-10-26 10:01:35 UTC) #13
bashi
lgtm https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h File third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h (right): https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h#newcode61 third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h:61: if (DictionaryHelper::get(dictionary, key, innerValue)) { On 2016/10/26 10:01:35, ...
4 years, 1 month ago (2016-10-26 23:12:51 UTC) #14
Yuki
https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h File third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h (right): https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h#newcode61 third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h:61: if (DictionaryHelper::get(dictionary, key, innerValue)) { On 2016/10/26 23:12:51, bashi1 ...
4 years, 1 month ago (2016-10-27 13:04:25 UTC) #15
peria
lgtm https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h File third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h (right): https://codereview.chromium.org/2444363002/diff/20001/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h#newcode61 third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForBindings.h:61: if (DictionaryHelper::get(dictionary, key, innerValue)) { On 2016/10/27 13:04:25, ...
4 years, 1 month ago (2016-10-27 13:10:02 UTC) #16
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/2444363002/20001
4 years, 1 month ago (2016-10-27 14:03:31 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/290967)
4 years, 1 month ago (2016-10-27 14:11:14 UTC) #20
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/2444363002/120001
4 years, 1 month ago (2016-11-14 13:23:12 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-14 18:30:13 UTC) #45
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 18:34:06 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/05d7c9d9594f75024b20a53cfbb1d6a8f5deb938
Cr-Commit-Position: refs/heads/master@{#431876}

Powered by Google App Engine
This is Rietveld 408576698