Propagate computed value flags to text. r?heycam
draft
Propagate computed value flags to text. r?heycam
MozReview-Commit-ID: EybbrzOPZpS
--- 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