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

Issue 1257613003: bindings: Supports inheritance of [Unforgeable] attributes as accessor-type properties. (Closed)

Created:
5 years, 5 months ago by Yuki
Modified:
5 years, 3 months ago
Reviewers:
haraken, tasak, bashi
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, vivekg_samsung, sof, eae+blinkwatch, vivekg, dglazkov+blink, blink-reviews-bindings_chromium.org, Inactive, rwlbuis
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

bindings: Supports inheritance of [Unforgeable] attributes as accessor-type properties. This CL makes it possible that we define [Unforgeable] attributes as accessor-type JS properties, and child-interfaces inherit them from parent-interfaces. Note that Window and Location's attributes are still data-type properties. Except for Event.isTrusted, there should be no behavioral change. Event.isTrusted becomes accessor-type properties. BUG=43394, 491006, 497616 Committed: https://crrev.com/e56d75cefca6bff8bb96648e86f7fba30740e5bb git-svn-id: svn://svn.chromium.org/blink/trunk@199658 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 24

Patch Set 3 : Synced. #

Patch Set 4 : Addressed review comments. #

Patch Set 5 : Made inherit_unforgeable_attributes more robust. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -107 lines) Patch
M Source/bindings/scripts/code_generator_v8.py View 2 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/scripts/compute_interfaces_info_individual.py View 1 2 3 7 chunks +61 lines, -5 lines 0 comments Download
M Source/bindings/scripts/compute_interfaces_info_overall.py View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M Source/bindings/scripts/interface_dependency_resolver.py View 1 2 3 4 3 chunks +42 lines, -1 line 2 comments Download
M Source/bindings/scripts/utilities.py View 1 chunk +20 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp View 3 chunks +46 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp View 2 chunks +19 lines, -0 lines 0 comments Download
M Source/core/dom/XMLDocument.idl View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/html/HTMLDocument.idl View 1 chunk +0 lines, -8 lines 0 comments Download
D Source/modules/cachestorage/CompositorWorkerCacheStorage.idl View 1 chunk +0 lines, -17 lines 0 comments Download
D Source/modules/cachestorage/DedicatedWorkerCacheStorage.idl View 1 chunk +0 lines, -17 lines 0 comments Download
D Source/modules/cachestorage/ServiceWorkerCacheStorage.idl View 1 chunk +0 lines, -17 lines 0 comments Download
D Source/modules/cachestorage/SharedWorkerCacheStorage.idl View 1 chunk +0 lines, -17 lines 0 comments Download
M Source/modules/cachestorage/WorkerCacheStorage.idl View 1 chunk +0 lines, -6 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Yuki
Could you guys review this CL?
5 years, 4 months ago (2015-07-27 07:40:56 UTC) #2
haraken
LGTM, but bashi@ might want to take another look. BTW, is Unforgeable attribute the only ...
5 years, 4 months ago (2015-07-27 08:54:11 UTC) #3
Yuki
On 2015/07/27 08:54:11, haraken wrote: > LGTM, but bashi@ might want to take another look. ...
5 years, 4 months ago (2015-07-27 09:04:12 UTC) #4
haraken
On 2015/07/27 09:04:12, Yuki wrote: > On 2015/07/27 08:54:11, haraken wrote: > > LGTM, but ...
5 years, 4 months ago (2015-07-27 09:09:04 UTC) #5
bashi
Thanks for working on this! I have some questions so it would be better to ...
5 years, 4 months ago (2015-07-28 00:38:47 UTC) #6
Yuki
Could you take another look? https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/compute_interfaces_info_individual.py File Source/bindings/scripts/compute_interfaces_info_individual.py (right): https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/compute_interfaces_info_individual.py#newcode134 Source/bindings/scripts/compute_interfaces_info_individual.py:134: return sorted(set(attribute for attribute ...
5 years, 4 months ago (2015-07-29 08:16:25 UTC) #7
bashi
https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/compute_interfaces_info_individual.py File Source/bindings/scripts/compute_interfaces_info_individual.py (right): https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/compute_interfaces_info_individual.py#newcode218 Source/bindings/scripts/compute_interfaces_info_individual.py:218: self.interfaces_info[definition.name] = {} On 2015/07/29 08:16:24, Yuki wrote: > ...
5 years, 4 months ago (2015-07-29 09:24:34 UTC) #8
Yuki
https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/interface_dependency_resolver.py File Source/bindings/scripts/interface_dependency_resolver.py (right): https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/interface_dependency_resolver.py#newcode342 Source/bindings/scripts/interface_dependency_resolver.py:342: for interface_name, interface in definitions.interfaces.iteritems(): On 2015/07/29 09:24:33, bashi1 ...
5 years, 4 months ago (2015-07-29 09:32:38 UTC) #9
bashi
On 2015/07/29 09:32:38, Yuki wrote: > https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/interface_dependency_resolver.py > File Source/bindings/scripts/interface_dependency_resolver.py (right): > > https://codereview.chromium.org/1257613003/diff/20001/Source/bindings/scripts/interface_dependency_resolver.py#newcode342 > ...
5 years, 4 months ago (2015-07-29 09:39:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257613003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257613003/80001
5 years, 4 months ago (2015-07-29 12:27:59 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199658
5 years, 4 months ago (2015-07-29 12:32:11 UTC) #14
tasak
https://codereview.chromium.org/1257613003/diff/80001/Source/bindings/scripts/interface_dependency_resolver.py File Source/bindings/scripts/interface_dependency_resolver.py (right): https://codereview.chromium.org/1257613003/diff/80001/Source/bindings/scripts/interface_dependency_resolver.py#newcode346 Source/bindings/scripts/interface_dependency_resolver.py:346: interface_info['referenced_interfaces'] = sorted(set(referenced_interfaces)) Just my perfornal preference. I would ...
5 years, 4 months ago (2015-07-29 12:56:45 UTC) #16
Yuki
https://codereview.chromium.org/1257613003/diff/80001/Source/bindings/scripts/interface_dependency_resolver.py File Source/bindings/scripts/interface_dependency_resolver.py (right): https://codereview.chromium.org/1257613003/diff/80001/Source/bindings/scripts/interface_dependency_resolver.py#newcode346 Source/bindings/scripts/interface_dependency_resolver.py:346: interface_info['referenced_interfaces'] = sorted(set(referenced_interfaces)) On 2015/07/29 12:56:45, tasak wrote: > ...
5 years, 4 months ago (2015-08-03 02:02:13 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:53:30 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e56d75cefca6bff8bb96648e86f7fba30740e5bb

Powered by Google App Engine
This is Rietveld 408576698