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

Issue 479563003: IDL: Set dictionary default values in impl constructor (Closed)

Created:
6 years, 4 months ago by bashi
Modified:
6 years, 4 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Set dictionary default values in impl constructor The current implementation sets default values in V8T::toNative(). However, there are some code paths in which we don't call V8T::toNative(). For example, if an IDL dictionary is an optional argument and it isn't given, the binding layer creates impl class by calling T::create() and passes it to blink without calling V8T::toNative(). Since all dictionary impl class instances should have default values, we should sets default values in impl constructor. BUG=321462 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180384

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -22 lines) Patch
M Source/bindings/scripts/v8_dictionary.py View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/templates/dictionary_impl.h View 1 chunk +1 line, -1 line 1 comment Download
M Source/bindings/templates/dictionary_impl.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/templates/dictionary_v8.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/TestDictionary.h View 1 chunk +13 lines, -13 lines 0 comments Download
M Source/bindings/tests/results/TestDictionary.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestDictionary.cpp View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bashi
Haraken-san, Jens, Could you take a look? I'm writing a CL[1] which adds the first ...
6 years, 4 months ago (2014-08-15 16:39:39 UTC) #1
Jens Widell
LGTM
6 years, 4 months ago (2014-08-15 16:49:19 UTC) #2
bashi
On 2014/08/15 16:49:19, Jens Widell wrote: > LGTM Thanks!
6 years, 4 months ago (2014-08-15 16:52:09 UTC) #3
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 4 months ago (2014-08-15 16:52:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/479563003/1
6 years, 4 months ago (2014-08-15 16:52:26 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-15 17:31:17 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (1) as 180384
6 years, 4 months ago (2014-08-15 18:18:49 UTC) #7
haraken
6 years, 4 months ago (2014-08-15 22:29:38 UTC) #8
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698