[librsvg] rsvg_state_inherit_run(): When inheriting stop_color, mark the presence of the new color
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_state_inherit_run(): When inheriting stop_color, mark the presence of the new color
- Date: Fri, 2 Jun 2017 15:29:45 +0000 (UTC)
commit b09d893f0ac263454021d4a232f16611ac281daf
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 2 10:23:23 2017 -0500
rsvg_state_inherit_run(): When inheriting stop_color, mark the presence of the new color
This makes pservers-grad-18-b.svg pass again.
It makes me nervous that *that* test breaks often, and we have no
lower-level tests for that kind of gradient/stop inheritance.
Hmm, do we need to do this for *all* the other properties, too?
rsvg-styles.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index e49cc2c..338278e 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -348,11 +348,13 @@ rsvg_state_inherit_run (RsvgState * dst, const RsvgState * src,
dst->join = src->join;
if (function (dst->has_stop_color, src->has_stop_color)) {
if (dst->stop_color.kind == RSVG_CSS_COLOR_SPEC_INHERIT) {
+ dst->has_stop_color = TRUE;
dst->stop_color = src->stop_color;
}
}
if (function (dst->has_stop_opacity, src->has_stop_opacity)) {
if (dst->stop_opacity.kind == RSVG_OPACITY_INHERIT) {
+ dst->has_stop_opacity = TRUE;
dst->stop_opacity = src->stop_opacity;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]