mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Use the WritingMode bitflags from Stylo
This commit is contained in:
parent
b9adf8b7ac
commit
40ad9a722d
10 changed files with 62 additions and 81 deletions
|
@ -173,6 +173,11 @@ impl WritingMode {
|
|||
self.intersects(WritingMode::VERTICAL)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_horizontal(&self) -> bool {
|
||||
!self.is_vertical()
|
||||
}
|
||||
|
||||
/// Assuming .is_vertical(), does the block direction go left to right?
|
||||
#[inline]
|
||||
pub fn is_vertical_lr(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue