]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6692 Disable delayed text setting in Firefox 4
authorArtur Signell <artur.signell@itmill.com>
Fri, 25 Mar 2011 10:24:34 +0000 (10:24 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 25 Mar 2011 10:24:34 +0000 (10:24 +0000)
svn changeset:17935/svn branch:6.5

src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java
src/com/vaadin/terminal/gwt/client/ui/VTextField.java

index ce96e44eb6e1a736b52a954303ae994e771faba4..933f2880e9f9e1f863445329b031a4dea9c8ee8d 100644 (file)
@@ -48,7 +48,6 @@ import com.vaadin.terminal.gwt.client.Focusable;
 import com.vaadin.terminal.gwt.client.Paintable;
 import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.VConsole;
 import com.vaadin.terminal.gwt.client.VTooltip;
 
 /**
@@ -1100,7 +1099,7 @@ public class VFilterSelect extends Composite implements Paintable, Field,
      *            the text to set in the text box
      */
     private void setTextboxText(final String text) {
-        if (BrowserInfo.get().isGecko()) {
+        if (BrowserInfo.get().isFF3()) {
             Scheduler.get().scheduleDeferred(new Command() {
                 public void execute() {
                     tb.setText(text);
index edf4261988e0b352d996326e1301b74952a7f266..e275d7a9ac2123f37910189c8e53a4b3679edcd5 100644 (file)
@@ -240,10 +240,10 @@ public class VTextField extends TextBoxBase implements Paintable, Field,
         setPrompting(inputPrompt != null && focusedTextField != this
                 && (text == null || text.equals("")));
 
-        if (BrowserInfo.get().isGecko()) {
+        if (BrowserInfo.get().isFF3()) {
             /*
-             * Gecko is really sluggish when updating input attached to dom.
-             * Some optimizations seems to work much better in Gecko if we
+             * Firefox 3 is really sluggish when updating input attached to dom.
+             * Some optimizations seems to work much better in Firefox3 if we
              * update the actual content lazily when the rest of the DOM has
              * stabilized. In tests, about ten times better performance is
              * achieved with this optimization. See for eg. #2898