Author: toshok
Date: 2007-07-31 18:21:39 -0400 (Tue, 31 Jul 2007)
New Revision: 83146
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/runtime.cpp
Log:
2007-07-31 Chris Toshok <[EMAIL PROTECTED]>
* runtime.cpp (Attach): attach a namescope to the toplevel canvas
if there isn't one when it's attached.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-07-31 20:50:50 UTC (rev 83145)
+++ trunk/moon/src/ChangeLog 2007-07-31 22:21:39 UTC (rev 83146)
@@ -1,3 +1,8 @@
+2007-07-31 Chris Toshok <[EMAIL PROTECTED]>
+
+ * runtime.cpp (Attach): attach a namescope to the toplevel canvas
+ if there isn't one when it's attached.
+
2007-07-31 Jeffrey Stedfast <[EMAIL PROTECTED]>
* media.cpp: NaturalDuration is actually a TimeSpan, not a
Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp 2007-07-31 20:50:50 UTC (rev 83145)
+++ trunk/moon/src/runtime.cpp 2007-07-31 22:21:39 UTC (rev 83146)
@@ -275,6 +275,12 @@
Canvas *canvas = (Canvas *) element;
canvas->ref ();
+ // make sure we have a namescope at the toplevel so that names
+ // can be registered/resolved properly.
+ if (NameScope::GetNameScope (canvas) == NULL) {
+ NameScope::SetNameScope (canvas, new NameScope());
+ }
+
canvas->SetSurface (this);
toplevel = canvas;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches