[librsvg: 12/20] Don't copy the layout size to PositionedSpan after all




commit 03cc62ae62710ccf5f3c92e06b99abcc0885d22e
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Oct 20 12:10:13 2021 -0500

    Don't copy the layout size to PositionedSpan after all
    
    We just needed to access it during layout.
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/616>

 src/text.rs | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/text.rs b/src/text.rs
index 9cdad356..ae91c3fe 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -78,7 +78,6 @@ struct MeasuredSpan {
 
 struct PositionedSpan {
     layout: pango::Layout,
-    layout_size: (f64, f64),
     values: Rc<ComputedValues>,
     rendered_position: (f64, f64),
     next_span_position: (f64, f64),
@@ -202,7 +201,6 @@ impl PositionedChunk {
 
             let positioned_span = PositionedSpan {
                 layout,
-                layout_size,
                 values,
                 rendered_position,
                 next_span_position: (x, y),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]