aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-02-12 14:58:15 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-02-16 16:01:41 -0800
commitb416bb3aa7e3da3a33dc0c115f1f7619914f382f (patch)
tree2bc5fffa324289d0a76bb130cad731da89489763 /components/layout/flow.rs
parentd423e54d58d6cced950896eed1957ee2989f4eee (diff)
downloadservo-b416bb3aa7e3da3a33dc0c115f1f7619914f382f.tar.gz
servo-b416bb3aa7e3da3a33dc0c115f1f7619914f382f.zip
Add get_column_styles for getting column structure and styles for a table
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index 3f2b64827af..30877defa43 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -171,6 +171,12 @@ pub trait Flow: HasBaseFlow + fmt::Debug + Sync + Send + 'static {
panic!("called as_mut_table_colgroup() on a non-tablecolgroup flow")
}
+ /// If this is a table colgroup flow, returns the underlying object. Fails
+ /// otherwise.
+ fn as_table_colgroup(&self) -> &TableColGroupFlow {
+ panic!("called as_table_colgroup() on a non-tablecolgroup flow")
+ }
+
/// If this is a table rowgroup flow, returns the underlying object, borrowed mutably. Fails
/// otherwise.
fn as_mut_table_rowgroup(&mut self) -> &mut TableRowGroupFlow {