gfx/cairo/disable-previous-scaled-font-cache.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/cairo/disable-previous-scaled-font-cache.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +diff --git a/gfx/cairo/cairo/src/cairo.c b/gfx/cairo/cairo/src/cairo.c
     1.5 +--- a/gfx/cairo/cairo/src/cairo.c
     1.6 ++++ b/gfx/cairo/cairo/src/cairo.c
     1.7 +@@ -3201,8 +3201,12 @@ cairo_set_scaled_font (cairo_t          
     1.8 + 
     1.9 +     _cairo_gstate_set_font_options (cr->gstate, &scaled_font->options);
    1.10 + 
    1.11 ++    /* XXX: Mozilla code assumes that the ctm of a scaled font doesn't need to
    1.12 ++     * match the context ctm. This assumption breaks the previous_scaled_font
    1.13 ++     * cache. So we avoid using the cache for now.
    1.14 +     if (was_previous)
    1.15 + 	cr->gstate->scaled_font = cairo_scaled_font_reference ((cairo_scaled_font_t *) scaled_font);
    1.16 ++    */
    1.17 + 
    1.18 +     return;
    1.19 + 

mercurial