mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
cairo: Fix a clip test to test the right coordinate. r=ehsan,a=gavin
Fixed upstream by 498c10032ea3f8631a928cd7df96766f2c8ddca4
This commit is contained in:
parent
378490ae79
commit
7ed56960b2
@ -138,6 +138,8 @@ disable-previous-scaled-font-cache.patch: Disable the previous-scaled-font-cache
|
||||
|
||||
copyarea-with-alpha.patch: support simple overlapping self copies in (some) color_alpha xlib surfaces. https://bugs.freedesktop.org/show_bug.cgi?id=29250
|
||||
|
||||
fix-clip-test.patch: Use y 498c10032ea3f8631a928cd7df96766f2c8ddca4
|
||||
|
||||
==== pixman patches ====
|
||||
|
||||
pixman-android-cpu-detect.patch: Add CPU detection support for Android, where we can't reliably access /proc/self/auxv.
|
||||
|
@ -408,7 +408,7 @@ _cairo_clip_rectangle (cairo_clip_t *clip,
|
||||
/* if a smaller clip has already been set, ignore the new path */
|
||||
if (clip->path != NULL) {
|
||||
if (rectangle->x <= clip->path->extents.x &&
|
||||
rectangle->y <= clip->path->extents.x &&
|
||||
rectangle->y <= clip->path->extents.y &&
|
||||
rectangle->x + rectangle->width >= clip->path->extents.x + clip->path->extents.width &&
|
||||
rectangle->y + rectangle->height >= clip->path->extents.y + clip->path->extents.height)
|
||||
{
|
||||
|
15
gfx/cairo/fix-clip-test.patch
Normal file
15
gfx/cairo/fix-clip-test.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Fix a clip test to test the right coordinate.
|
||||
|
||||
Fixed upstream by 498c10032ea3f8631a928cd7df96766f2c8ddca4
|
||||
diff --git a/gfx/cairo/cairo/src/cairo-clip.c b/gfx/cairo/cairo/src/cairo-clip.c
|
||||
--- a/gfx/cairo/cairo/src/cairo-clip.c
|
||||
+++ b/gfx/cairo/cairo/src/cairo-clip.c
|
||||
@@ -408,7 +408,7 @@ _cairo_clip_rectangle (cairo_clip_t
|
||||
/* if a smaller clip has already been set, ignore the new path */
|
||||
if (clip->path != NULL) {
|
||||
if (rectangle->x <= clip->path->extents.x &&
|
||||
- rectangle->y <= clip->path->extents.x &&
|
||||
+ rectangle->y <= clip->path->extents.y &&
|
||||
rectangle->x + rectangle->width >= clip->path->extents.x + clip->path->extents.width &&
|
||||
rectangle->y + rectangle->height >= clip->path->extents.y + clip->path->extents.height)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user