mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add MulticolFlow and use it for multicol elements.
It currently "inherits" from BlockFlow and does not override anything.
This commit is contained in:
parent
f30cd4f377
commit
cc4749373a
6 changed files with 130 additions and 3 deletions
|
@ -5194,6 +5194,12 @@ impl ComputedValues {
|
|||
))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_multicol(&self) -> bool {
|
||||
let style = self.get_column();
|
||||
style.column_count.is_some() || style.column_width.is_some()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_font_arc(&self) -> Arc<style_structs::Font> {
|
||||
self.font.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue