diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/cairo/surface-clipper.patch | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/surface-clipper.patch')
-rw-r--r-- | gfx/cairo/surface-clipper.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gfx/cairo/surface-clipper.patch b/gfx/cairo/surface-clipper.patch new file mode 100644 index 0000000000..6088411470 --- /dev/null +++ b/gfx/cairo/surface-clipper.patch @@ -0,0 +1,26 @@ +commit 061cc774a861f349334117203c301dee202f9f26 +Author: Jeff Muizelaar <jmuizelaar@mozilla.com> +Date: Wed Apr 7 23:05:48 2010 -0400 + + Remove an incorrect optimization that was causing the clip + not to be set when it should've been. + + This happens when the path is equal but the parents aren't shared. + +diff --git a/src/cairo-surface-clipper.c b/src/cairo-surface-clipper.c +index d536f0c..03610d1 100644 +--- a/src/cairo-surface-clipper.c ++++ b/src/cairo-surface-clipper.c +@@ -78,12 +78,6 @@ _cairo_surface_clipper_set_clip (cairo_surface_clipper_t *clipper, + if (clip != NULL && clip->path == clipper->clip.path) + return CAIRO_STATUS_SUCCESS; + +- if (clip != NULL && clipper->clip.path != NULL && +- _cairo_path_fixed_equal (&clip->path->path, &clipper->clip.path->path)) +- { +- return CAIRO_STATUS_SUCCESS; +- } +- + /* all clipped out state should never propagate this far */ + assert (clip == NULL || clip->path != NULL); + |