Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/2c8a47b7d44116cb29a2ba46db0118ef726615d3
...commit
http://git.netsurf-browser.org/netsurf.git/commit/2c8a47b7d44116cb29a2ba46db0118ef726615d3
...tree
http://git.netsurf-browser.org/netsurf.git/tree/2c8a47b7d44116cb29a2ba46db0118ef726615d3
The branch, master has been updated
via 2c8a47b7d44116cb29a2ba46db0118ef726615d3 (commit)
from 90100bbd45be8e3bc45f258a32a24f433cadbd70 (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=2c8a47b7d44116cb29a2ba46db0118ef726615d3
commit 2c8a47b7d44116cb29a2ba46db0118ef726615d3
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
GTK: Slight optimisation to nsfont_split().
When we aren't modifying the line, pango_layout_get_line_readonly()
is a faster alternative to pango_layout_get_line().
diff --git a/frontends/gtk/layout_pango.c b/frontends/gtk/layout_pango.c
index 5276148..fb065b1 100644
--- a/frontends/gtk/layout_pango.c
+++ b/frontends/gtk/layout_pango.c
@@ -194,7 +194,7 @@ nsfont_split(const plot_font_style_t *fstyle,
pango_layout_set_single_paragraph_mode(layout, TRUE);
/* Obtain the second line of the layout (if there is one) */
- line = pango_layout_get_line(layout, 1);
+ line = pango_layout_get_line_readonly(layout, 1);
if (line != NULL) {
/* Pango split the text. The line's start_index indicates the
* start of the character after the line break. */
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/layout_pango.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontends/gtk/layout_pango.c b/frontends/gtk/layout_pango.c
index 5276148..fb065b1 100644
--- a/frontends/gtk/layout_pango.c
+++ b/frontends/gtk/layout_pango.c
@@ -194,7 +194,7 @@ nsfont_split(const plot_font_style_t *fstyle,
pango_layout_set_single_paragraph_mode(layout, TRUE);
/* Obtain the second line of the layout (if there is one) */
- line = pango_layout_get_line(layout, 1);
+ line = pango_layout_get_line_readonly(layout, 1);
if (line != NULL) {
/* Pango split the text. The line's start_index indicates the
* start of the character after the line break. */
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org