diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /gfx/cairo/xlib-glyph-clip-region.patch | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/cairo/xlib-glyph-clip-region.patch')
-rw-r--r-- | gfx/cairo/xlib-glyph-clip-region.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gfx/cairo/xlib-glyph-clip-region.patch b/gfx/cairo/xlib-glyph-clip-region.patch new file mode 100644 index 000000000..50ff7f951 --- /dev/null +++ b/gfx/cairo/xlib-glyph-clip-region.patch @@ -0,0 +1,40 @@ +diff --git a/gfx/cairo/cairo/src/cairo-xlib-surface.c b/gfx/cairo/cairo/src/cairo-xlib-surface.c +--- a/gfx/cairo/cairo/src/cairo-xlib-surface.c ++++ b/gfx/cairo/cairo/src/cairo-xlib-surface.c +@@ -4806,30 +4806,30 @@ static cairo_int_status_t + } + + X_DEBUG ((display->display, "show_glyphs (dst=%x)", (unsigned int) dst->drawable)); + + if (clip_region != NULL && + cairo_region_num_rectangles (clip_region) == 1) + { + cairo_rectangle_int_t glyph_extents; +- const cairo_rectangle_int_t *clip_extents; ++ cairo_rectangle_int_t clip_extents; + + /* Can we do without the clip? + * Around 50% of the time the clip is redundant (firefox). + */ + _cairo_scaled_font_glyph_approximate_extents (scaled_font, + glyphs, num_glyphs, + &glyph_extents); + +- clip_extents = &clip->path->extents; +- if (clip_extents->x <= glyph_extents.x && +- clip_extents->y <= glyph_extents.y && +- clip_extents->x + clip_extents->width >= glyph_extents.x + glyph_extents.width && +- clip_extents->y + clip_extents->height >= glyph_extents.y + glyph_extents.height) ++ cairo_region_get_extents(clip_region, &clip_extents); ++ if (clip_extents.x <= glyph_extents.x && ++ clip_extents.y <= glyph_extents.y && ++ clip_extents.x + clip_extents.width >= glyph_extents.x + glyph_extents.width && ++ clip_extents.y + clip_extents.height >= glyph_extents.y + glyph_extents.height) + { + clip_region = NULL; + } + } + + status = _cairo_xlib_surface_set_clip_region (dst, clip_region); + if (unlikely (status)) + goto BAIL0; |