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 Review URL: https://codereview.chromium.org/479563003 git-svn-id: svn://svn.chromium.org/blink/trunk@180384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment