[librsvg] element: remove dedicated is_overflow getter
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] element: remove dedicated is_overflow getter
- Date: Sun, 22 Mar 2020 19:38:15 +0000 (UTC)
commit 0b80d49db364f3a85f727942be94a50f801a127c
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Mar 22 20:33:09 2020 +0100
element: remove dedicated is_overflow getter
Now we have a getter for the specified values, so we do not need
a special case.
rsvg_internals/src/drawing_ctx.rs | 3 ++-
rsvg_internals/src/element.rs | 4 ----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 965561ab..dfd138ba 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -1178,7 +1178,8 @@ impl DrawingCtx {
let symbol = elt.get_impl::<Symbol>();
let clip_mode = if !values.is_overflow()
- || (values.overflow == Overflow::Visible && child.borrow_element().is_overflow())
+ || (values.overflow == Overflow::Visible
+ && child.borrow_element().get_specified_values().is_overflow())
{
Some(ClipMode::ClipToVbox)
} else {
diff --git a/rsvg_internals/src/element.rs b/rsvg_internals/src/element.rs
index 8d927464..6166c4f0 100644
--- a/rsvg_internals/src/element.rs
+++ b/rsvg_internals/src/element.rs
@@ -229,10 +229,6 @@ impl Element {
self.transform
}
- pub fn is_overflow(&self) -> bool {
- self.specified_values.is_overflow()
- }
-
pub fn set_atts(&mut self, parent: Option<&Node>, pbag: &PropertyBag<'_>, locale: &Locale) {
self.save_style_attribute(pbag);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]