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

Issue 15724005: [Binding] Support primitive type for union member (Closed)

Created:
7 years, 7 months ago by kojih
Modified:
7 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, alancutter (OOO until 2018)
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

[Binding] Support primitive type for union member Support primitive type such as unsigned long for union member. Now we can write in IDL: getter (Node or unsigned long) (DOMString name); Auto-generate V8NodeList::namedPropertyGetter with the feature. Introduce [NoNamedGetter] which means the IDL do not expose named getter even if parent IDL have one. Rename [DoNotCheckJSProperty] with [OverrideBuiltins] per spec: http://www.w3.org/TR/WebIDL/#OverrideBuiltins R=haraken@chromium.org BUG=229740 TEST=TestInterface.idl

Patch Set 1 #

Patch Set 2 : do not inherit getter. rename DoNotCheckJSProperty to OverrideBuiltins #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -75 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 5 chunks +17 lines, -18 lines 2 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 2 chunks +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 chunk +5 lines, -3 lines 1 comment Download
M Source/bindings/v8/custom/V8NodeListCustom.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M Source/core/core.gypi View 1 chunk +1 line, -0 lines 1 comment Download
M Source/core/css/WebKitCSSFilterValue.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/WebKitCSSTransformValue.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DOMStringMap.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/NodeList.h View 1 chunk +1 line, -0 lines 0 comments Download
A + Source/core/dom/NodeList.cpp View 3 chunks +18 lines, -15 lines 2 comments Download
M Source/core/dom/NodeList.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/DOMSettableTokenList.idl View 1 1 chunk +1 line, -0 lines 1 comment Download
M Source/core/html/HTMLAllCollection.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLAllCollection.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormControlsCollection.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormControlsCollection.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormControlsCollection.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormElement.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameSetElement.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLOptionsCollection.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLOptionsCollection.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/RadioNodeList.idl View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
kojih
r?
7 years, 7 months ago (2013-05-23 04:05:54 UTC) #1
kojih
Diff of generated code: diff -u /mnt/hdd/diff/gen_master/V8HTMLAllCollection.cpp /mnt/hdd/diff/gen_nodel/V8HTMLAllCollection.cpp --- /mnt/hdd/diff/gen_master/V8HTMLAllCollection.cpp 2013-05-23 11:44:29.862141597 +0900 +++ /mnt/hdd/diff/gen_nodel/V8HTMLAllCollection.cpp ...
7 years, 7 months ago (2013-05-23 05:14:26 UTC) #2
haraken
7 years, 7 months ago (2013-05-23 05:56:27 UTC) #3
The patch looks good overall, but you are doing too many things in one CL.
Please upload them one by one in order to avoid regressions.

- Rename [DoNotCheckJSProperty] to [OverrideBuiltins]
- Add xxxEnabled parameters
- Add more named getters
- Remove custom named getters of NodeList
- etc

https://codereview.chromium.org/15724005/diff/3001/Source/bindings/tests/resu...
File Source/bindings/tests/results/V8TestInterface.cpp (right):

https://codereview.chromium.org/15724005/diff/3001/Source/bindings/tests/resu...
Source/bindings/tests/results/V8TestInterface.cpp:538: if (element0Enabled &&
!!element0)

Just to confirm: You added '&& !!element0' just in case, right? I'm OK with
adding it just in case.

https://codereview.chromium.org/15724005/diff/3001/Source/core/core.gypi
File Source/core/core.gypi (right):

https://codereview.chromium.org/15724005/diff/3001/Source/core/core.gypi#newc...
Source/core/core.gypi:1810: 'dom/NodeList.cpp',

Nit: alphabetical order please.

https://codereview.chromium.org/15724005/diff/3001/Source/core/dom/NodeList.cpp
File Source/core/dom/NodeList.cpp (right):

https://codereview.chromium.org/15724005/diff/3001/Source/core/dom/NodeList.c...
Source/core/dom/NodeList.cpp:42: if (name == length) {

OK, let's keep the current code as is and investigate the issue later.

https://codereview.chromium.org/15724005/diff/3001/Source/core/html/DOMSettab...
File Source/core/html/DOMSettableTokenList.idl (right):

https://codereview.chromium.org/15724005/diff/3001/Source/core/html/DOMSettab...
Source/core/html/DOMSettableTokenList.idl:27: [TreatReturnedNullStringAs=Null,
ImplementedAs=item] getter DOMString(unsigned long index);

Why do we need to add [TreatReturnedNullStringAs=Null]?

Powered by Google App Engine
This is Rietveld 408576698