Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/67066ce47c1f65ea6ba07...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/67066ce47c1f65ea6ba0710...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/67066ce47c1f65ea6ba071068...
The branch, master has been updated
via 67066ce47c1f65ea6ba071068a78c29a7e3b63e5 (commit)
from de1f0afde282acbf46c03ccba4148974ebf8b210 (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=67066ce47c1f65ea6ba...
commit 67066ce47c1f65ea6ba071068a78c29a7e3b63e5
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Shave a few more px off animated background redraw, in the non-tiled cases. (Restrict
area to part of image that changed.)
diff --git a/render/html_object.c b/render/html_object.c
index 0868ce3..f7ed3bd 100644
--- a/render/html_object.c
+++ b/render/html_object.c
@@ -259,23 +259,19 @@ html_object_callback(hlcache_handle *object,
case CSS_BACKGROUND_REPEAT_REPEAT_X:
data.redraw.x = 0;
- data.redraw.y = t;
+ data.redraw.y += t;
data.redraw.width = box->width;
- data.redraw.height = h;
break;
case CSS_BACKGROUND_REPEAT_REPEAT_Y:
- data.redraw.x = l;
+ data.redraw.x += l;
data.redraw.y = 0;
- data.redraw.width = w;
data.redraw.height = box->height;
break;
case CSS_BACKGROUND_REPEAT_NO_REPEAT:
- data.redraw.x = l;
- data.redraw.y = t;
- data.redraw.width = w;
- data.redraw.height = h;
+ data.redraw.x += l;
+ data.redraw.y += t;
break;
default:
-----------------------------------------------------------------------
Summary of changes:
render/html_object.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/render/html_object.c b/render/html_object.c
index 0868ce3..f7ed3bd 100644
--- a/render/html_object.c
+++ b/render/html_object.c
@@ -259,23 +259,19 @@ html_object_callback(hlcache_handle *object,
case CSS_BACKGROUND_REPEAT_REPEAT_X:
data.redraw.x = 0;
- data.redraw.y = t;
+ data.redraw.y += t;
data.redraw.width = box->width;
- data.redraw.height = h;
break;
case CSS_BACKGROUND_REPEAT_REPEAT_Y:
- data.redraw.x = l;
+ data.redraw.x += l;
data.redraw.y = 0;
- data.redraw.width = w;
data.redraw.height = box->height;
break;
case CSS_BACKGROUND_REPEAT_NO_REPEAT:
- data.redraw.x = l;
- data.redraw.y = t;
- data.redraw.width = w;
- data.redraw.height = h;
+ data.redraw.x += l;
+ data.redraw.y += t;
break;
default:
--
NetSurf Browser