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

Issue 11340013: Do not add secondary interfaces implemented by parents. (Closed)

Created:
8 years, 1 month ago by Anton Muhin
Modified:
8 years, 1 month ago
Reviewers:
podivilov, sra1
CC:
reviews_dartlang.org, blois
Visibility:
Public.

Description

Do not emit members of parent EventTarget interface. Currently WebKit mixes EventTarget in. R=podivilov@chromium.org,sra@google.com Committed: https://code.google.com/p/dart/source/detail?r=14288

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -60 lines) Patch
M lib/html/dart2js/html_dart2js.dart View 4 chunks +0 lines, -32 lines 0 comments Download
M lib/html/dartium/html_dartium.dart View 4 chunks +0 lines, -24 lines 0 comments Download
M lib/html/scripts/systemhtml.py View 1 2 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Anton Muhin
8 years, 1 month ago (2012-10-29 18:13:32 UTC) #1
Anton Muhin
A bit of background: v8 do not generate clone bindings in this case I was ...
8 years, 1 month ago (2012-10-29 18:21:06 UTC) #2
Anton Muhin
ptal
8 years, 1 month ago (2012-10-30 13:34:06 UTC) #3
podivilov
https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py#newcode572 lib/html/scripts/systemhtml.py:572: while self._database.HasInterface(parent.type.id): EventTarget is an extended attribute in idls, ...
8 years, 1 month ago (2012-10-30 13:43:49 UTC) #4
Anton Muhin
https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py#newcode572 lib/html/scripts/systemhtml.py:572: while self._database.HasInterface(parent.type.id): I am not sure it's a hack. ...
8 years, 1 month ago (2012-10-30 13:45:08 UTC) #5
podivilov
https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py#newcode572 lib/html/scripts/systemhtml.py:572: while self._database.HasInterface(parent.type.id): On 2012/10/30 13:45:09, Anton Muhin wrote: > ...
8 years, 1 month ago (2012-10-30 13:55:42 UTC) #6
Anton Muhin
https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py#newcode572 lib/html/scripts/systemhtml.py:572: while self._database.HasInterface(parent.type.id): WebKit IDLs has many peculiarities, for example, ...
8 years, 1 month ago (2012-10-30 14:05:01 UTC) #7
podivilov
https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py File lib/html/scripts/systemhtml.py (right): https://codereview.chromium.org/11340013/diff/4001/lib/html/scripts/systemhtml.py#newcode572 lib/html/scripts/systemhtml.py:572: while self._database.HasInterface(parent.type.id): I think the rule of thumb is ...
8 years, 1 month ago (2012-10-30 14:12:15 UTC) #8
Anton Muhin
PTAL That also removes dispatchEvent from ScriptProcessorNode which is probably an error in WebKit IDLs.
8 years, 1 month ago (2012-10-30 15:00:09 UTC) #9
podivilov
lgtm
8 years, 1 month ago (2012-10-30 15:01:14 UTC) #10
sra1
8 years, 1 month ago (2012-10-30 20:12:29 UTC) #11
I think this is a step in the right direction, but why does it remove only 4 of
the 30+ ?

What I would like to see is only one Impl class (_EventTargetImpl) with an
implementation of addEventListener etc.

My understanding is that our friends working on WebKit would like EventTarget to
be a real base class, as that is the way it is in w3 IDL.

This would have a nice size benefit since there are still 30x3 redundant
methods.
Removing 90 redundant methods will surely benefit snapshot size and I estimate
it will take another 20k off the size of swarm compiled with dart2js.

Is this something we can do now?

Even if it is not possible to remove all the extra EventTarget methods for
Dartium I want to remove all from dart2js.

Powered by Google App Engine
This is Rietveld 408576698