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

Unified Diff: frog/gen.dart

Issue 8888027: DOM fixes for types that are not marked hidden (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: frog/gen.dart
diff --git a/frog/gen.dart b/frog/gen.dart
index cae3ab91433fb980b67ec7494fb83d070f148d8b..04786b428b3871cce14efe8975aa1759308844df 100644
--- a/frog/gen.dart
+++ b/frog/gen.dart
@@ -165,7 +165,8 @@ class WorldGenerator {
// TODO(jmesserly): we can't accurately track if DOM types are
// created or not, so we need to prepare to handle them.
// This should be fixed by tightening up the return types in DOM.
- if ((type.isUsed || type.isHiddenNativeType) && type.isClass) {
+ if ((type.isUsed || type.library == world.dom
sra1 2011/12/08 22:04:32 I assume isUsed get set when a subclass is used?
Jennifer Messerly 2011/12/08 22:17:48 Maybe. The "hidden" bit isn't really related, thou
+ || type.isHiddenNativeType) && type.isClass) {
writeType(type);
if (type.isGeneric) {
@@ -280,7 +281,7 @@ class WorldGenerator {
}
}
}
-
+
if (type.isTop) {
// no preludes for top type
} else if (type.constructors.length == 0) {
« client/dom/frog/frog_dom.dart ('K') | « client/dom/frog/frog_dom.dart ('k') | frog/minfrog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698