Add MulticolFlow and use it for multicol elements.

It currently "inherits" from BlockFlow and does not override anything.
This commit is contained in:
Simon Sapin 2015-03-07 17:15:31 +01:00
parent f30cd4f377
commit cc4749373a
6 changed files with 130 additions and 3 deletions

View file

@ -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()