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

Issue 50263004: Make sure that classes in dart:html do not implement both List and List<E>. (Closed)

Created:
7 years, 1 month ago by kasperl
Modified:
7 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make sure that classes in dart:html do not implement both List and List<E>. R=johnniwinther@google.com, blois@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=29417

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -61 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 20 chunks +20 lines, -20 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 21 chunks +23 lines, -23 lines 0 comments Download
M sdk/lib/svg/dart2js/svg_dart2js.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/web_sql/dart2js/web_sql_dart2js.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/web_sql/dartium/web_sql_dartium.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/scripts/htmldartgenerator.py View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
kasperl
7 years, 1 month ago (2013-10-29 07:44:05 UTC) #1
Johnni Winther
lgtm
7 years, 1 month ago (2013-10-29 07:55:35 UTC) #2
rakudrama
Get Pete's feedback. This change does not work for List<CanvasElement> x = document.queryAll(...); The returned ...
7 years, 1 month ago (2013-10-29 08:29:55 UTC) #3
kasperl
Committed patchset #1 manually as r29417 (presubmit successful).
7 years, 1 month ago (2013-10-29 08:37:22 UTC) #4
kasperl
On 2013/10/29 08:29:55, rakudrama wrote: > Get Pete's feedback. > This change does not work ...
7 years, 1 month ago (2013-10-29 12:12:25 UTC) #5
blois
7 years, 1 month ago (2013-10-29 16:19:29 UTC) #6
Message was sent while issue was closed.
On 2013/10/29 12:12:25, kasperl wrote:
> On 2013/10/29 08:29:55, rakudrama wrote:
> > Get Pete's feedback.
> > This change does not work for
> > 
> > List<CanvasElement> x = document.queryAll(...);
> > 
> > The returned NodeList fails the type assertion in checked mode.
> 
> Having though a little bit more about this, I'm not sure I understand your
> concerns, Stephen. The document.queryAll function returns a "raw"
> FrozenElementList so what is returned implements a "raw" List. Clearly, that
can
> be assigned to something with a List<CanvasElement> type annotation in checked
> mode. The change hasn't been reverted yet so it's still cooking on the build
> bots.
> 
> Cheers,
> Kasper

I think the issue was that there are a number of places where we return NodeList
as a List<Node> (for example getElementsByClassName), where it is a fairly safe
assumption that the  list will only have a sub-type.

We only removed the types on these items 2 weeks ago and it should not be a
breaking change to make this change again in the future (if needed), so I'm OK
reversing it now.

Powered by Google App Engine
This is Rietveld 408576698