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

Issue 928233002: IDL: Don't lose nullable flag when "preprocessing" type (Closed)

Created:
5 years, 10 months ago by Jens Widell
Modified:
5 years, 10 months ago
Reviewers:
haraken, scheib
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IDL: Don't lose nullable flag when "preprocessing" type The preprocessing converts any enumeration type into IdlType('DOMString'), including nullable enumeration types, which is wrong. It should convert an nullable enumeration type into IdlNullableType(IdlType('DOMString')). This change affects the code generation for the following methods and attributes: object? WebGLRenderingContextBase.getExtension() VendorIDSource? BluetoothDevice.vendorIDSource [can return null] RTCSdpType? RTCSessionDescription.type [can be set to and return null] BUG=451602 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190259

Patch Set 1 : add test #

Patch Set 2 : the actual fix #

Patch Set 3 : fix compilation #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -17 lines) Patch
M Source/bindings/scripts/v8_types.py View 1 1 chunk +3 lines, -1 line 1 comment Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 chunks +33 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.h View 1 2 1 chunk +1 line, -1 line 1 comment Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 1 chunk +14 lines, -14 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Jens Widell
PTAL https://codereview.chromium.org/928233002/diff/40001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (left): https://codereview.chromium.org/928233002/diff/40001/Source/bindings/scripts/v8_types.py#oldcode677 Source/bindings/scripts/v8_types.py:677: if (idl_type.name in ['Any', 'Object'] or idl_type.is_callback_function): Looking ...
5 years, 10 months ago (2015-02-16 14:33:54 UTC) #2
haraken
LGTM
5 years, 10 months ago (2015-02-16 14:42:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928233002/40001
5 years, 10 months ago (2015-02-16 15:55:40 UTC) #5
commit-bot: I haz the power
5 years, 10 months ago (2015-02-16 16:56:40 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190259

Powered by Google App Engine
This is Rietveld 408576698