[librsvg: 2/4] StackingContext: carry the value of the isolation property here
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/4] StackingContext: carry the value of the isolation property here
- Date: Thu, 11 Nov 2021 21:00:48 +0000 (UTC)
commit 9c73fa5222761340d3f4a200b65da4b49e9d378d
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Nov 11 14:40:08 2021 -0600
StackingContext: carry the value of the isolation property here
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/630>
src/layout.rs | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/layout.rs b/src/layout.rs
index c259e9107..acf117552 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -16,9 +16,9 @@ use crate::paint_server::{PaintSource, UserSpacePaintSource};
use crate::path_builder::Path;
use crate::properties::{
ClipRule, ComputedValues, Direction, FillRule, Filter, FontFamily, FontStretch, FontStyle,
- FontVariant, FontWeight, MixBlendMode, Opacity, Overflow, PaintOrder, ShapeRendering,
- StrokeDasharray, StrokeLinecap, StrokeLinejoin, StrokeMiterlimit, TextDecoration,
- TextRendering, UnicodeBidi, XmlLang,
+ FontVariant, FontWeight, Isolation, MixBlendMode, Opacity, Overflow, PaintOrder,
+ ShapeRendering, StrokeDasharray, StrokeLinecap, StrokeLinejoin, StrokeMiterlimit,
+ TextDecoration, TextRendering, UnicodeBidi, XmlLang,
};
use crate::rect::Rect;
use crate::surface_utils::shared_surface::SharedImageSurface;
@@ -47,6 +47,7 @@ pub struct StackingContext {
pub clip_in_object_space: Option<Node>,
pub mask: Option<Node>,
pub mix_blend_mode: MixBlendMode,
+ pub isolation: Isolation,
/// Target from an <a> element
pub link_target: Option<String>,
@@ -208,6 +209,7 @@ impl StackingContext {
});
let mix_blend_mode = values.mix_blend_mode();
+ let isolation = values.isolation();
StackingContext {
element_name,
@@ -218,6 +220,7 @@ impl StackingContext {
clip_in_object_space,
mask,
mix_blend_mode,
+ isolation,
link_target: None,
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]