[librsvg/attribute-parsers-737: 13/26] filters/blend.rs: use set_attribute()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/attribute-parsers-737: 13/26] filters/blend.rs: use set_attribute()
- Date: Fri, 21 Oct 2022 01:06:07 +0000 (UTC)
commit de6a7762d82d3ac2e779afc8eeda091960781e35
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Oct 20 14:58:01 2022 -0500
filters/blend.rs: use set_attribute()
src/filters/blend.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/filters/blend.rs b/src/filters/blend.rs
index 3b6ac4370..96e962774 100644
--- a/src/filters/blend.rs
+++ b/src/filters/blend.rs
@@ -3,7 +3,7 @@ use markup5ever::{expanded_name, local_name, namespace_url, ns};
use crate::document::AcquiredNodes;
use crate::drawing_ctx::DrawingCtx;
-use crate::element::{ElementResult, SetAttributes};
+use crate::element::{set_attribute, ElementResult, SetAttributes};
use crate::error::*;
use crate::node::{CascadedValues, Node};
use crate::parsers::{Parse, ParseValue};
@@ -67,7 +67,7 @@ impl SetAttributes for FeBlend {
for (attr, value) in attrs.iter() {
if let expanded_name!("", "mode") = attr.expanded() {
- self.params.mode = attr.parse(value)?;
+ set_attribute(&mut self.params.mode, attr.parse(value), session);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]