Propagate computed value flags to text. r?heycam draft
authorXidorn Quan <me@upsuper.org>
Wed, 05 Jul 2017 14:04:42 +1000
changeset 604073 7a2798903fcfb52e5c28b20bcea7a9bbfe1a1d18
parent 604072 a812a07a05e97056544176994e90a0d7939bc791
child 604074 19e6e0b11e540e2237f7d9401e00428780b50424
push id66946
push userxquan@mozilla.com
push dateWed, 05 Jul 2017 08:14:20 +0000
reviewersheycam
milestone56.0a1
Propagate computed value flags to text. r?heycam MozReview-Commit-ID: EybbrzOPZpS
servo/components/style/style_adjuster.rs
--- a/servo/components/style/style_adjuster.rs
+++ b/servo/components/style/style_adjuster.rs
@@ -90,16 +90,17 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
     ///
     /// The adjustments here are a subset of the adjustments generally, because
     /// text only inherits properties.
     ///
     /// Note that this, for Gecko, comes through Servo_ComputedValues_Inherit.
     #[cfg(feature = "gecko")]
     pub fn adjust_for_text(&mut self) {
         self.adjust_for_text_combine_upright();
+        self.style.flags = self.layout_parent_style.flags;
     }
 
     /// Change writing mode of the text frame for text-combine-upright.
     ///
     /// It is safe to look at our own style because we are looking at inherited
     /// properties, and text is just plain inheritance.
     ///
     /// TODO(emilio): we should (Gecko too) revise these adjustments in presence