2003/12/31 00:51:55
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:58 +0000 (07:43 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:58 +0000 (07:43 +0000)
darcs-hash:20040130074358-2ba56-143fb32a44f5f6f8ec962c0f7164524fa9fffe45.gz

src/org/xwt/Box.java

index cfd638c..b5585fc 100644 (file)
@@ -260,6 +260,12 @@ public final class Box extends JSScope implements Scheduler.Task {
             do {
                 int thisx = parent == null ? 0 : this.x;
                 int thisy = parent == null ? 0 : this.y;
+
+                // we can't reenable this until we track
+                // surface-relative sizes; imagine the case of a clear
+                // surface with nonclear children
+
+                /*
                 if (texture == null && (text == null || text.equals(""))) {
                     if ((fillcolor & 0xff000000) == 0) break;
                     // FEATURE: more optimizations here
@@ -270,6 +276,7 @@ public final class Box extends JSScope implements Scheduler.Task {
                         break;
                     }
                 }
+                */
                 (parent == null ? this : parent).dirty(thisx, thisy, this.width, this.height);
                 this.width = width; this.height = height; this.x = x; this.y = y;
                 dirty();