changeset 2029:2bb1121a1960

merge
author Jorge Arellano Cid <jcid@dillo.org>
date Mon, 16 May 2011 21:40:27 -0400
parents f356a146762b (current diff) d488f8eb86e4 (diff)
children 382160be8c2f ae8f0d070aea
files
diffstat 13 files changed, 25 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Mon May 16 21:33:10 2011 -0400
+++ b/dpi/cookies.c	Mon May 16 21:40:27 2011 -0400
@@ -13,8 +13,11 @@
  *
  */
 
-/* This is written to follow the HTTP State Working Group's
- * draft-ietf-httpstate-cookie-01.txt.
+/* This is written to follow the HTTP State Working Group's cookie draft
+ * standard, as of the version somewhere in the general neighbourhood of
+ * draft-ietf-httpstate-cookie-05.txt.
+ * TODO: They eventually succeeded in getting RFC 6265 out. What differences
+ * are there?
  *
  * Info on cookies in the wild:
  *  http://www.ietf.org/mail-archive/web/http-state/current/msg00078.html
--- a/dw/fltkcomplexbutton.cc	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkcomplexbutton.cc	Mon May 16 21:40:27 2011 -0400
@@ -126,7 +126,7 @@
     return 1;
   case FL_SHORTCUT:
     if (!(shortcut() ?
-          Fl::test_shortcut(shortcut()) : test_shortcut())) return 0;    
+          Fl::test_shortcut(shortcut()) : test_shortcut())) return 0;
     if (Fl::visible_focus() && handle(FL_FOCUS)) Fl::focus(this);
     goto triggered_by_keyboard;
   case FL_FOCUS : /* FALLTHROUGH */
--- a/dw/fltkcomplexbutton.hh	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkcomplexbutton.hh	Mon May 16 21:40:27 2011 -0400
@@ -23,7 +23,7 @@
 #include <FL/Fl_Group.H>
 
 // values for type()
-#define FL_NORMAL_BUTTON	0   /**< value() will be set to 1 during the press of the button and 
+#define FL_NORMAL_BUTTON	0   /**< value() will be set to 1 during the press of the button and
                                          reverts back to 0 when the button is released */
 #define FL_TOGGLE_BUTTON	1   ///< value() toggles between 0 and 1 at every click of the button
 #define FL_RADIO_BUTTON		(FL_RESERVED_TYPE+2) /**< is set to 1 at button press, and all other
@@ -49,7 +49,7 @@
   static Fl_Widget_Tracker *key_release_tracker;
   static void key_release_timeout(void*);
   void simulate_key_action();
-  
+
   virtual void draw();
 
 public:
--- a/dw/fltkui.cc	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkui.cc	Mon May 16 21:40:27 2011 -0400
@@ -980,7 +980,7 @@
 
    return item;
 }
-   
+
 void FltkOptionMenuResource::addItem (const char *str,
                                       bool enabled, bool selected)
 {
@@ -1022,7 +1022,7 @@
 
 bool FltkOptionMenuResource::isSelected (int index)
 {
-   return index == (int) ((Fl_Choice *)widget)->mvalue()->user_data();
+   return index == (long) ((Fl_Choice *)widget)->mvalue()->user_data();
 }
 
 int FltkOptionMenuResource::getNumberOfItems()
--- a/dw/fltkviewbase.cc	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkviewbase.cc	Mon May 16 21:40:27 2011 -0400
@@ -143,7 +143,7 @@
    // fl_clip_box() can't handle values greater than SHRT_MAX!
    if (X > x () + w () || Y > y () + h ())
       return;
-   
+
    W = X + rect->width > x () + w () ? x () + w () - X : rect->width;
    H = Y + rect->height > y () + h () ? y () + h () - Y : rect->height;
 
@@ -288,7 +288,7 @@
    case FL_UNFOCUS:
       focused_child = fl_oldfocus;
       return 0;
-      
+
    default:
       return Fl_Group::handle (event);
    }
--- a/dw/fltkviewbase.hh	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkviewbase.hh	Mon May 16 21:40:27 2011 -0400
@@ -23,7 +23,7 @@
 
       public:
          Fl_Offscreen offscreen;
-      
+
          BackBuffer ();
          ~BackBuffer ();
          void setSize(int w, int h);
--- a/dw/fltkviewport.cc	Mon May 16 21:33:10 2011 -0400
+++ b/dw/fltkviewport.cc	Mon May 16 21:40:27 2011 -0400
@@ -147,7 +147,7 @@
 
 // ----------------------------------------------------------------------
 
-void FltkViewport::resize(int X, int Y, int W, int H) 
+void FltkViewport::resize(int X, int Y, int W, int H)
 {
    bool dimension_changed = W != w() || H != h();
 
--- a/src/cssparser.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/cssparser.cc	Mon May 16 21:40:27 2011 -0400
@@ -1522,7 +1522,7 @@
 {
    return Css_property_info[name].symbol;
 }
- 
+
 void CssParser::ignoreBlock()
 {
    int depth = 0;
--- a/src/form.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/form.cc	Mon May 16 21:40:27 2011 -0400
@@ -249,7 +249,9 @@
       html->inputs_outside_form->increase();
       html->inputs_outside_form->set(ni, input);
 
-      input->setEnabled(false);
+      if (html->bw->NumPendingStyleSheets > 0) {
+         input->setEnabled(false);
+      }
    }
 }
 
--- a/src/html.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/html.cc	Mon May 16 21:40:27 2011 -0400
@@ -2880,7 +2880,7 @@
 
          if (a_Url_cmp(html->base_url, new_url) == 0) {
             /* redirection loop, or empty url string: ignore */
-            BUG_MSG("META refresh: %s\n", 
+            BUG_MSG("META refresh: %s\n",
                     *mr_url ? "redirection loop" : "no target URL");
          } else if (delay == 0) {
             /* zero-delay redirection */
--- a/src/menu.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/menu.cc	Mon May 16 21:40:27 2011 -0400
@@ -505,8 +505,8 @@
       {"Validate URL with WDG", 0, Menu_bugmeter_validate_wdg_cb, 0,
        FL_MENU_DIVIDER,0,0,0,0},
       {"About bug meter", 0, Menu_bugmeter_about_cb,0,0,0,0,0,0},
-      {0,0,0,0,0,0,0,0,0}     
-   };      
+      {0,0,0,0,0,0,0,0,0}
+   };
 
    popup_x = Fl::event_x();
    popup_y = Fl::event_y();
@@ -620,7 +620,7 @@
       {"Use remote CSS", 0, Menu_remote_css_cb, 0, FL_MENU_TOGGLE,0,0,0,0},
       {"Use embedded CSS", 0, Menu_embedded_css_cb, 0,
        FL_MENU_TOGGLE|FL_MENU_DIVIDER,0,0,0,0},
-      {"Load images", 0, Menu_imgload_toggle_cb, 0, 
+      {"Load images", 0, Menu_imgload_toggle_cb, 0,
        FL_MENU_TOGGLE|FL_MENU_DIVIDER,0,0,0,0},
       {"Panel size", 0, 0, (void*)"Submenu1", FL_SUBMENU,0,0,0,0},
          {"tiny",  0,Menu_panel_change_cb,(void*)0,FL_MENU_RADIO,0,0,0,0},
--- a/src/ui.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/ui.cc	Mon May 16 21:40:27 2011 -0400
@@ -707,7 +707,7 @@
    // Control panel
    TopGroup->begin();
     make_panel(ui_w);
- 
+
     // Render area
     int main_h = ui_h - (mh+(LocBar?lh:0)+nh+fh+sh);
     Main = new Fl_Group(0,0,0,main_h,"Welcome...");
@@ -721,7 +721,7 @@
     TopGroup->add(Main);
     TopGroup->resizable(Main);
     MainIdx = TopGroup->find(Main);
- 
+
     // Find text bar
     FindBarSpace = 1;
     FindBar = new Findbar(ui_w, fh);
--- a/src/uicmd.cc	Mon May 16 21:33:10 2011 -0400
+++ b/src/uicmd.cc	Mon May 16 21:40:27 2011 -0400
@@ -305,7 +305,7 @@
 {
    char title[128];
    int idx = get_btn_idx(ui);
- 
+
    if (idx > 0) {
       // Make a label for this tab
       size_t tab_chars = 7, label_len = strlen(label);