mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Align the Rust and C++ representations of WritingMode.
Differential Revision: https://phabricator.services.mozilla.com/D44412
This commit is contained in:
parent
987a1eeb62
commit
3c2e4d1e98
2 changed files with 81 additions and 25 deletions
|
@ -283,6 +283,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
fn adjust_for_text_combine_upright(&mut self) {
|
||||
use crate::computed_values::text_combine_upright::T as TextCombineUpright;
|
||||
use crate::computed_values::writing_mode::T as WritingMode;
|
||||
use crate::logical_geometry;
|
||||
|
||||
let writing_mode = self.style.get_inherited_box().clone_writing_mode();
|
||||
let text_combine_upright = self.style.get_inherited_text().clone_text_combine_upright();
|
||||
|
@ -294,6 +295,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
self.style
|
||||
.mutate_inherited_box()
|
||||
.set_writing_mode(WritingMode::HorizontalTb);
|
||||
self.style.writing_mode =
|
||||
logical_geometry::WritingMode::new(self.style.get_inherited_box());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue