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

Issue 14751005: Support for latest WebIDL for indexed property getters. (Closed)

Created:
7 years, 7 months ago by kojih
Modified:
7 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, jsbell+bindings_chromium.org, abarth-chromium, kinuko, feature-media-reviews_chromium.org, apavlov+blink_chromium.org, darktears, Nate Chapin, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Support for latest WebIDL for indexed property getters. Currently Blink WebIDL is old and defined indexed property getter as [IndexedGetter], which has a problem that sometimes we can't get return type and method name via IDL. Now getter type identifier(unsigned long identifier); means the function is used as indexed property getter, as described in: http://www.w3.org/TR/WebIDL/#idl-indexed-properties At the same time, generator now generate toV8Fast instead of toV8 for all indexed getter because wrappable is known in those cases. R=haraken@chromium.org BUG=229740 TEST=TestEventTarget Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149564

Patch Set 1 #

Total comments: 4

Patch Set 2 : do not generate enumerator in case of WebKitCSSKeyframesRule #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -117 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 9 chunks +85 lines, -47 lines 1 comment Download
M Source/bindings/scripts/IDLAttributes.txt View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestEventTarget.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSRuleList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/CSSStyleDeclaration.idl View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/css/CSSValueList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/MediaList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/StyleSheetList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/WebKitCSSFilterValue.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/WebKitCSSKeyframesRule.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/WebKitCSSTransformValue.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ClientRectList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/DOMNamedFlowCollection.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/DOMStringList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/DataTransferItemList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/NamedNodeMap.idl View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/dom/NodeList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/TouchList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/fileapi/FileList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/DOMSettableTokenList.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/DOMTokenList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLAllCollection.idl View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLCollection.idl View 2 chunks +1 line, -2 lines 0 comments Download
Source/core/html/HTMLFormControlsCollection.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/RadioNodeList.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/track/TextTrackCueList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/track/TextTrackList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/track/TextTrackRegionList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/page/SpeechInputResultList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMMimeTypeArray.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMPlugin.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMPluginArray.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/filesystem/EntryArray.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/filesystem/EntryArraySync.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/gamepad/GamepadList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/mediasource/SourceBufferList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/speech/SpeechGrammarList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResult.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionResultList.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kojih
r? https://codereview.chromium.org/14751005/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (left): https://codereview.chromium.org/14751005/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#oldcode3028 Source/bindings/scripts/CodeGeneratorV8.pm:3028: $indexerType = "WebKitCSSKeyframeRule"; These special patterns are now ...
7 years, 7 months ago (2013-05-01 04:36:29 UTC) #1
haraken
The patch looks correct but I'm not 100% sure because the patch changes a bunch ...
7 years, 7 months ago (2013-05-01 06:22:11 UTC) #2
kojih
sorry I found 1 difference(enumerator of WebKitCSSKeyframesRule) in generated code. There's exactly only changes toV8->toV8Fast ...
7 years, 7 months ago (2013-05-01 08:50:21 UTC) #3
haraken
Thanks for the update. The change from toV8() to toV8Fast() is OK (rather, fine!). LGTM. ...
7 years, 7 months ago (2013-05-01 18:07:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/14751005/4001
7 years, 7 months ago (2013-05-02 01:22:45 UTC) #5
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 02:20:15 UTC) #6
Message was sent while issue was closed.
Change committed as 149564

Powered by Google App Engine
This is Rietveld 408576698