Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/847d5680613cb578ba4a548960480363a3230174
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/847d5680613cb578ba4a548960480363a3230174
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/847d5680613cb578ba4a548960480363a3230174

The branch, master has been updated
       via  847d5680613cb578ba4a548960480363a3230174 (commit)
       via  5749ace60f9359b6bc31d7f8c071d87d270733da (commit)
      from  6faa70893b70fc43d6f398f2e43719c763c2d193 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=847d5680613cb578ba4a548960480363a3230174
commit 847d5680613cb578ba4a548960480363a3230174
Author: Vincent Sanders <vi...@kyllikki.org>
Commit: Vincent Sanders <vi...@kyllikki.org>

    fix missing bitmap from preventing history and scroll updates

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index 39072ff..2fbc80f 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -435,9 +435,7 @@ nserror browser_window_history_update(struct browser_window 
*bw,
 
        history = bw->history;
 
-       if (!history ||
-           !history->current ||
-           !history->current->page.bitmap) {
+       if ((history == NULL) || (history->current == NULL)) {
                return NSERROR_INVALID;
        }
 
@@ -456,7 +454,7 @@ nserror browser_window_history_update(struct browser_window 
*bw,
                guit->bitmap->render(history->current->page.bitmap, content);
        }
 
-       if (bw->window != NULL &&
+       if ((bw->window != NULL) &&
            guit->window->get_scroll(bw->window, &sx, &sy)) {
                int content_height = content_get_height(content);
                int content_width = content_get_width(content);
@@ -490,9 +488,7 @@ browser_window_history_get_scroll(struct browser_window *bw,
 
        history = bw->history;
 
-       if (!history ||
-           !history->current ||
-           !history->current->page.bitmap) {
+       if ((history== NULL) || (history->current == NULL)) {
                return NSERROR_INVALID;
        }
 


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=5749ace60f9359b6bc31d7f8c071d87d270733da
commit 5749ace60f9359b6bc31d7f8c071d87d270733da
Author: Vincent Sanders <vi...@kyllikki.org>
Commit: Vincent Sanders <vi...@kyllikki.org>

    split out internal local history macros from public interface header

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index 5b44670..39072ff 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -41,6 +41,7 @@
 
 #include "desktop/gui_internal.h"
 #include "desktop/browser_private.h"
+#include "desktop/local_history_private.h"
 #include "desktop/browser_history.h"
 
 /**
diff --git a/desktop/browser_history.h b/desktop/browser_history.h
index 06041eb..9b6f1fd 100644
--- a/desktop/browser_history.h
+++ b/desktop/browser_history.h
@@ -35,17 +35,6 @@
 
 #include "utils/errors.h"
 
-#include "content/handlers/css/utils.h"
-
-#define LOCAL_HISTORY_WIDTH \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(116))))
-#define LOCAL_HISTORY_HEIGHT \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(100))))
-#define LOCAL_HISTORY_RIGHT_MARGIN \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(50))))
-#define LOCAL_HISTORY_BOTTOM_MARGIN \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(30))))
-
 struct browser_window;
 struct history_entry;
 struct bitmap;
diff --git a/desktop/local_history.c b/desktop/local_history.c
index 412e893..5227c97 100644
--- a/desktop/local_history.c
+++ b/desktop/local_history.c
@@ -41,6 +41,7 @@
 #include "desktop/system_colour.h"
 #include "desktop/browser_private.h"
 #include "desktop/browser_history.h"
+#include "desktop/local_history_private.h"
 #include "desktop/local_history.h"
 
 /**
diff --git a/desktop/local_history_private.h b/desktop/local_history_private.h
new file mode 100644
index 0000000..0b74562
--- /dev/null
+++ b/desktop/local_history_private.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2006 James Bursa <bu...@users.sourceforge.net>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * \file
+ * Interface to browser history private operations
+ */
+
+#ifndef NETSURF_DESKTOP_BROWSER_HISTORY_PRIVATE_H
+#define NETSURF_DESKTOP_BROWSER_HISTORY_PRIVATE_H
+
+#include "content/handlers/css/utils.h"
+
+#define LOCAL_HISTORY_WIDTH \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(116))))
+#define LOCAL_HISTORY_HEIGHT \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(100))))
+#define LOCAL_HISTORY_RIGHT_MARGIN \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(50))))
+#define LOCAL_HISTORY_BOTTOM_MARGIN \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(30))))
+
+#endif


-----------------------------------------------------------------------

Summary of changes:
 desktop/browser_history.c                          |   11 ++++------
 desktop/browser_history.h                          |   11 ----------
 desktop/local_history.c                            |    1 +
 .../textplain.h => desktop/local_history_private.h |   23 ++++++++++----------
 4 files changed, 17 insertions(+), 29 deletions(-)
 copy content/handlers/text/textplain.h => desktop/local_history_private.h (57%)

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index 5b44670..2fbc80f 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -41,6 +41,7 @@
 
 #include "desktop/gui_internal.h"
 #include "desktop/browser_private.h"
+#include "desktop/local_history_private.h"
 #include "desktop/browser_history.h"
 
 /**
@@ -434,9 +435,7 @@ nserror browser_window_history_update(struct browser_window 
*bw,
 
        history = bw->history;
 
-       if (!history ||
-           !history->current ||
-           !history->current->page.bitmap) {
+       if ((history == NULL) || (history->current == NULL)) {
                return NSERROR_INVALID;
        }
 
@@ -455,7 +454,7 @@ nserror browser_window_history_update(struct browser_window 
*bw,
                guit->bitmap->render(history->current->page.bitmap, content);
        }
 
-       if (bw->window != NULL &&
+       if ((bw->window != NULL) &&
            guit->window->get_scroll(bw->window, &sx, &sy)) {
                int content_height = content_get_height(content);
                int content_width = content_get_width(content);
@@ -489,9 +488,7 @@ browser_window_history_get_scroll(struct browser_window *bw,
 
        history = bw->history;
 
-       if (!history ||
-           !history->current ||
-           !history->current->page.bitmap) {
+       if ((history== NULL) || (history->current == NULL)) {
                return NSERROR_INVALID;
        }
 
diff --git a/desktop/browser_history.h b/desktop/browser_history.h
index 06041eb..9b6f1fd 100644
--- a/desktop/browser_history.h
+++ b/desktop/browser_history.h
@@ -35,17 +35,6 @@
 
 #include "utils/errors.h"
 
-#include "content/handlers/css/utils.h"
-
-#define LOCAL_HISTORY_WIDTH \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(116))))
-#define LOCAL_HISTORY_HEIGHT \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(100))))
-#define LOCAL_HISTORY_RIGHT_MARGIN \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(50))))
-#define LOCAL_HISTORY_BOTTOM_MARGIN \
-               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(30))))
-
 struct browser_window;
 struct history_entry;
 struct bitmap;
diff --git a/desktop/local_history.c b/desktop/local_history.c
index 412e893..5227c97 100644
--- a/desktop/local_history.c
+++ b/desktop/local_history.c
@@ -41,6 +41,7 @@
 #include "desktop/system_colour.h"
 #include "desktop/browser_private.h"
 #include "desktop/browser_history.h"
+#include "desktop/local_history_private.h"
 #include "desktop/local_history.h"
 
 /**
diff --git a/content/handlers/text/textplain.h b/desktop/local_history_private.h
similarity index 57%
copy from content/handlers/text/textplain.h
copy to desktop/local_history_private.h
index 6cc2716..0b74562 100644
--- a/content/handlers/text/textplain.h
+++ b/desktop/local_history_private.h
@@ -1,6 +1,5 @@
 /*
  * Copyright 2006 James Bursa <bu...@users.sourceforge.net>
- * Copyright 2006 Adrian Lees <adri...@users.sourceforge.net>
  *
  * This file is part of NetSurf, http://www.netsurf-browser.org/
  *
@@ -19,19 +18,21 @@
 
 /**
  * \file
- *
- * Interface to content handler for plain text.
+ * Interface to browser history private operations
  */
 
-#ifndef NETSURF_HTML_TEXTPLAIN_H
-#define NETSURF_HTML_TEXTPLAIN_H
+#ifndef NETSURF_DESKTOP_BROWSER_HISTORY_PRIVATE_H
+#define NETSURF_DESKTOP_BROWSER_HISTORY_PRIVATE_H
 
-/**
- * Initialise the text content handler
- *
- * \return NSERROR_OK on success else appropriate error code.
- */
-nserror textplain_init(void);
+#include "content/handlers/css/utils.h"
 
+#define LOCAL_HISTORY_WIDTH \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(116))))
+#define LOCAL_HISTORY_HEIGHT \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(100))))
+#define LOCAL_HISTORY_RIGHT_MARGIN \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(50))))
+#define LOCAL_HISTORY_BOTTOM_MARGIN \
+               (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(30))))
 
 #endif


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org
To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org

Reply via email to