Re: [gwt-contrib] JConstructor redesign

2010-03-08 Thread Scott Blum
On Fri, Mar 5, 2010 at 9:35 PM, Ray Cromwell cromwell...@gmail.com wrote: I have a prototype benchmark that can load your app N times using WebDriver, injecting a __gwtStatsEvent function which records load/parse times, I'll see if I can get a patch of it up. That'd be awesome, thanks! I

[gwt-contrib] Updates the IFRame and XS selection script templates to support

2010-03-08 Thread spoon
Reviewers: jgw, Description: Updates the IFRame and XS selection script templates to support inlined selection scripts. There are two changes involved: 1. There is a baseUrl meta property that can be used to override the choice of base URL. 2. Meta tags can be made to apply to only module

[gwt-contrib] Re: Updates the IFRame and XS selection script templates to support

2010-03-08 Thread spoon
Joel, can you review this? http://gwt-code-reviews.appspot.com/159810/diff/1/3 File dev/core/src/com/google/gwt/core/linker/XSTemplate.js (left): http://gwt-code-reviews.appspot.com/159810/diff/1/3#oldcode291 Line 291: processMetas(); This ordering is necessary because the meta props now

Re: [gwt-contrib] Updates the IFRame and XS selection script templates to support

2010-03-08 Thread Ian Petersen
Just idle curiosity here, but why did you have to make the same change twice? I know you're modifying selection scripts, and maybe that means you need to violate DRY for some reason, but it strikes me as a potential refactoring. Ian On Mon, Mar 8, 2010 at 9:23 AM, sp...@google.com wrote:

[gwt-contrib] Re: JConstructor redesign

2010-03-08 Thread spoon
Mostly LGTM, except for the concern about JNewInstance.isEmpty(). It looks like JNewInstance.isEmpty() should be computed within RemoveEmptySuperCalls to be efficient, or for that matter, to reliably terminate. There are also some nits. http://gwt-code-reviews.appspot.com/159803/diff/1/3

[gwt-contrib] RunAsync code size improvements

2010-03-08 Thread scottb
Reviewers: Lex, Message: Here's an example of what the new loader output looks like: package com.google.gwt.lang.asyncloaders; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.RunAsyncCallback; import com.google.gwt.core.client.impl.AsyncFragmentLoader; public class

[gwt-contrib] Re: JConstructor redesign

2010-03-08 Thread scottb
http://gwt-code-reviews.appspot.com/159803/diff/1/3 File dev/core/src/com/google/gwt/dev/jjs/ast/JConstructor.java (right): http://gwt-code-reviews.appspot.com/159803/diff/1/3#newcode64 Line 64: public boolean isEmpty() { Good call. Adding a method comment.

[gwt-contrib] Re: Updates the IFRame and XS selection script templates to support

2010-03-08 Thread jgw
LGTM http://gwt-code-reviews.appspot.com/159810/diff/1/2 File dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js (right): http://gwt-code-reviews.appspot.com/159810/diff/1/2#newcode200 Line 200: } Clever. I like it. http://gwt-code-reviews.appspot.com/159810/diff/1/3 File

Re: [gwt-contrib] Updates the IFRame and XS selection script templates to support

2010-03-08 Thread Joel Webber
@Ian: I know, it's nasty. These things have gotten a bit out of hand, and we have a big, fat TODO to come back and clean this up (as well as to bring together various other linkers under a more coherent umbrella). But we probably won't be able to get around to it for at least another quarter,

[gwt-contrib] Re: Remove caching of style sheets in IE6 (cache may be invalid when there are multiple modules)

2010-03-08 Thread rice
I added a new patch that caches the lengths but not the actual style sheet contents. In the worst case, if the lengths are wrong we will just append in a suboptimal way, but not lose any data. Benchmarking shows that the performance difference is minor -- still just 2-3 ms per injection in my

[gwt-contrib] Changes for crawling:

2010-03-08 Thread kprobst
Reviewers: amitmanjhi, Description: Changes for crawling: - CrawlableHyperlink - client-side changes to Showcase sample Please review this at http://gwt-code-reviews.appspot.com/161801 Affected files: M samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java M

[gwt-contrib] supporting java.io.InputStream/Reader in GWT's JRE

2010-03-08 Thread Eric B. Ridge
Please don't laugh (at least not out loud). I've run into a situation where I really need to use a JavaCC generated parser on the client-side. The generated code is all simple Java, except for its use of java.io.InputStream and java.io.Reader. Is it possible to implement additional GWT JRE

Re: [gwt-contrib] Updates the IFRame and XS selection script templates to support

2010-03-08 Thread Lex Spoon
On Mon, Mar 8, 2010 at 12:37 PM, Ian Petersen ispet...@gmail.com wrote: Just idle curiosity here, but why did you have to make the same change twice? I know you're modifying selection scripts, and maybe that means you need to violate DRY for some reason, but it strikes me as a potential

Re: [gwt-contrib] supporting java.io.InputStream/Reader in GWT's JRE

2010-03-08 Thread Ray Cromwell
Look at the user/super/com/google/gwt/emul source for the GWT JRE emulation, e.g. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/Emulation.gwt.xml super-source/ is what you want. It allows Web mode and Hosted Mode to see different source code. -Ray

[gwt-contrib] Re: JConstructor redesign

2010-03-08 Thread spoon
http://gwt-code-reviews.appspot.com/159803/diff/1/3 File dev/core/src/com/google/gwt/dev/jjs/ast/JConstructor.java (right): http://gwt-code-reviews.appspot.com/159803/diff/1/3#newcode80 Line 80: if (expr instanceof JMethodCall) { I see. It looks good now.

[gwt-contrib] Give a better error message when RunAsyncCode.runAsyncCode is passed something

2010-03-08 Thread spoon
Reviewers: cromwellian, Description: Give a better error message when RunAsyncCode.runAsyncCode is passed something other than a class literal. Please review this at http://gwt-code-reviews.appspot.com/162801 Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java

[gwt-contrib] [google-web-toolkit] r7686 committed - Updates the IFRame and XS selection script templates to support...

2010-03-08 Thread codesite-noreply
Revision: 7686 Author: sp...@google.com Date: Mon Mar 8 12:02:36 2010 Log: Updates the IFRame and XS selection script templates to support inlined selection scripts. There are two changes involved: 1. There is a baseUrl meta property that can be used to override the choice of base URL. 2.

[gwt-contrib] Re: Give a better error message when RunAsyncCode.runAsyncCode is passed something

2010-03-08 Thread spoon
I left out a file. Creating a new issue. http://gwt-code-reviews.appspot.com/162801 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Give a better error message when RunAsyncCode.runAsyncCode is passed something

2010-03-08 Thread spoon
Reviewers: cromwellian, Description: Give a better error message when RunAsyncCode.runAsyncCode is passed something other than a class literal. Please review this at http://gwt-code-reviews.appspot.com/161802 Affected files: M dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java

[gwt-contrib] Re: Give a better error message when RunAsyncCode.runAsyncCode is passed something

2010-03-08 Thread spoon
Can you review this, Ray? In trunk, the compiler generates an internal compiler exception if runAsyncCode is called with something other than a class literal as an argument. This fixes that problem, and while at it, updates all the other error messages in ReplaceRunAsyncs to be more

[gwt-contrib] Re: Changes for crawling:

2010-03-08 Thread amitmanjhi
http://gwt-code-reviews.appspot.com/161801/diff/1/3 File samples/showcase/war/Showcase.html (right): http://gwt-code-reviews.appspot.com/161801/diff/1/3#newcode4 Line 4: script language='javascript' Any disadvantage to leaving the title here (even though you are setting it later)? At least,

[gwt-contrib] Re: Add support for creating Grid elements using UiBinder.

2010-03-08 Thread Marko Vuksanovic
One more question - how to know which person to invite for a code review? On Mar 7, 11:11 am, Marko Vuksanovic markovuksano...@gmail.com wrote: I have created a patch that enables user to create Grid and its child elements using UiBinder (issue 4705

[gwt-contrib] Re: JConstructor redesign

2010-03-08 Thread scottb
http://gwt-code-reviews.appspot.com/159803/diff/1/25 File dev/core/src/com/google/gwt/dev/jjs/impl/RemoveEmptySuperCalls.java (right): http://gwt-code-reviews.appspot.com/159803/diff/1/25#newcode50 Line 50: ctx.replaceMe(multi.makeStatement()); Oh, I see your point. :( Yeah, that'd be a

[gwt-contrib] Re: Add support for creating Grid elements using UiBinder.

2010-03-08 Thread Ray Ryan
You don't, really. I'm the right person in this case, and you're right near the top of my todo list. Sorry I haven't gotten to it yet. On Mon, Mar 8, 2010 at 3:46 PM, Marko Vuksanovic markovuksano...@gmail.comwrote: One more question - how to know which person to invite for a code review? On

[gwt-contrib] [google-web-toolkit] r7687 committed - Initial code that uses org.json lib on the server side, passes actual ...

2010-03-08 Thread codesite-noreply
Revision: 7687 Author: gwt.mirror...@gmail.com Date: Mon Mar 8 13:39:42 2010 Log: Initial code that uses org.json lib on the server side, passes actual request parameters, plus integration with server side domain objects. Review at http://gwt-code-reviews.appspot.com/160809 Review by:

[gwt-contrib] Re: RequestFactory prototype: Initial code that uses org.json lib on the server side

2010-03-08 Thread amitmanjhi
Ray and I pair-programmed and commited this patch http://code.google.com/p/google-web-toolkit/source/detail?r=7687 Ray: please close this issue. http://gwt-code-reviews.appspot.com/160809/diff/1/9 File bikeshed/src/com/google/gwt/valuestore/shared/Property.java (right):

[gwt-contrib] Fix escaping

2010-03-08 Thread amitmanjhi
Reviewers: jat, Description: Fix the escaping of a String used in one of test methods of JsonpRequestTest Please review this at http://gwt-code-reviews.appspot.com/163801 Affected files: user/test/com/google/gwt/jsonp/client/JsonpRequestTest.java Index: